forked from cartsnitch/app
fix: use queueMicrotask before setState in VerifyEmail effect [CAR-937]
Avoids lint error 'Avoid calling setState() directly within an effect'. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -16,7 +16,7 @@ export function VerifyEmail() {
|
||||
const callbackURL = searchParams.get("callbackURL") || "/";
|
||||
|
||||
if (!token) {
|
||||
setStatus("error");
|
||||
queueMicrotask(() => setStatus("error"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user