refactor(ui): cleanup props usage
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / actions / StartTransaction.vue
index 3c64ba7b78bd3608753a17fba240ca93f235a280..cdf85938155a2bc5f381a86785d963dcd9926a4c 100644 (file)
@@ -10,7 +10,7 @@
     @click="
       () => {
         uiClient
-          .startTransaction(props.hashId, convertToInt(props.connectorId), state.idTag)
+          .startTransaction(hashId, convertToInt(connectorId), state.idTag)
           .then(() => {
             $toast.success('Transaction successfully started')
           })
@@ -33,7 +33,7 @@ import { getCurrentInstance, ref } from 'vue'
 import Button from '@/components/buttons/Button.vue'
 import { convertToInt } from '@/composables'
 
-const props = defineProps<{
+defineProps<{
   hashId: string
   chargingStationId: string
   connectorId: string