Handle server error on user page
This commit is contained in:
1 parent
8207f93af9
commit
c36bc6a12c
1 file changed
+4
-1
@@ -76,7 +76,10 @@
|
||||
} catch (err: unknown) {
|
||||
if (cancelled) return;
|
||||
|
||||
if (err instanceof UserApiError && (err.code === 'AUTH' || err.code === 'NOT_FOUND')) {
|
||||
if (
|
||||
err instanceof UserApiError &&
|
||||
(err.code === 'AUTH' || err.code === 'NOT_FOUND' || err.code === 'VALIDATION')
|
||||
) {
|
||||
verifiedKey = '';
|
||||
statusNotice =
|
||||
'Your saved access key has expired or is no longer valid. Please re-register below.';
|
||||
|
||||
Reference in new issue
Block a user