Refactor loading value assignment in handleSubmit function

This commit is contained in:
Douglas Barone 2023-12-18 15:14:48 -04:00
parent e4dc910865
commit 34206c66fd

View File

@ -36,9 +36,7 @@ async function handleSubmit({
} catch (error) { } catch (error) {
console.error(error) console.error(error)
} finally { } finally {
setTimeout(() => {
loading.value = false loading.value = false
}, 1000)
} }
} }
</script> </script>