Commit a2278911 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix error popup close

parent f7023329
...@@ -24,7 +24,7 @@ export default function Home() { ...@@ -24,7 +24,7 @@ export default function Home() {
if (!user.value?.token) { if (!user.value?.token) {
setMessage({ message: "คุณยังไม่ได้เข้าสู่ระบบ", error: true }); setMessage({ message: "คุณยังไม่ได้เข้าสู่ระบบ", error: true });
setTimeout(() => { setTimeout(() => {
setMessage({ message: "", error: false }); setMessage({ message: "", error: true });
}, 2000); }, 2000);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment