feat(ui): add charging station options to add action
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / actions / StartTransaction.vue
index 5e83983f34512ab1057d65f98a069bafc3c1200d..fed7d3beabef1f9bac06940bd9fd996d72e40c53 100644 (file)
@@ -10,7 +10,7 @@
     @click="
       () => {
         uiClient
-          .startTransaction(props.hashId, parseInt(props.connectorId), state.idTag)
+          .startTransaction(props.hashId, convertToInt(props.connectorId), state.idTag)
           .then(() => {
             $toast.success('Transaction successfully started')
           })
@@ -32,6 +32,7 @@
 <script setup lang="ts">
 import { getCurrentInstance, reactive } from 'vue'
 import Button from '@/components/buttons/Button.vue'
+import { convertToInt } from '@/composables'
 
 const props = defineProps<{
   hashId: string