Skip to content

Commit 0fdc855

Browse files
committed
♻️ added setLoading(true) at the start of the onSubmit
1 parent 7929929 commit 0fdc855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/find/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const Find = () => {
1313
const onSubmit = async (previewFormat) => {
1414
try {
1515
if(!token) return;
16+
setLoading(true)
1617

1718
const res = await fetch(`${process.env.NEXT_PUBLIC_BC_HOST}/${token}`)
1819
const data = res.json()

0 commit comments

Comments
 (0)