diff --git a/src/components/ftbot/ForceExitForm.vue b/src/components/ftbot/ForceExitForm.vue index ba09b9c2..81825673 100644 --- a/src/components/ftbot/ForceExitForm.vue +++ b/src/components/ftbot/ForceExitForm.vue @@ -91,7 +91,7 @@ const model = computed({ }, }); -const handleSubmit = () => { +function handleSubmit() { // Exit when the form isn't valid if (!checkFormValidity()) { return; @@ -107,17 +107,18 @@ const handleSubmit = () => { } botStore.activeBot.forceexit(payload); model.value = false; -}; -const resetForm = () => { +} + +function resetForm() { amount.value = props.trade.amount; ordertype.value = botStore.activeBot.botState?.order_types?.force_exit || botStore.activeBot.botState?.order_types?.exit || 'limit'; -}; +} -const handleEntry = () => { +function handleEntry() { // Trigger submit handler handleSubmit(); -}; +}