style: fix no-empty — add comments to intentionally empty catch blocks
This commit is contained in:
@@ -168,7 +168,9 @@
|
||||
if (payload.role === 'admin') {
|
||||
redirectTo = '/today';
|
||||
}
|
||||
} catch {}
|
||||
} catch {
|
||||
// Token decode failure is non-fatal; default redirectTo = '/' is used
|
||||
}
|
||||
toast.success('Successfully logged in!', { id: loadingToast });
|
||||
window.location.href = redirectTo;
|
||||
} else if (response.status === 409) {
|
||||
|
||||
Reference in New Issue
Block a user