Refactor loading value assignment in handleSubmit function
This commit is contained in:
parent
e4dc910865
commit
34206c66fd
|
@ -36,9 +36,7 @@ async function handleSubmit({
|
|||
} catch (error) {
|
||||
console.error(error)
|
||||
} finally {
|
||||
setTimeout(() => {
|
||||
loading.value = false
|
||||
}, 1000)
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user