Skip to content

Commit

Permalink
New error message for exceeding storage quota (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight authored Dec 2, 2024
1 parent 529f041 commit 161e1ac
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,21 @@ const SendEmailVerification = ({
});
}
} catch (e) {
setError(
`An error occurred loading account info: [${getErrorMessage(e)}
if (
e instanceof Error &&
(e.name === "QuotaExceededError" ||
e.message.includes("QuotaExceededError") ||
e.message.includes("storage quota"))
) {
setError(
`Your browser does not have enough storage space for your account data. Try logging in using a desktop browser and deleting some data from your account.`
);
} else {
setError(
`An error occurred loading account info: [${getErrorMessage(e)}
]. If this persists, contact [email protected].`
);
);
}
}
setLoadingAccount(false);
} else {
Expand Down

0 comments on commit 161e1ac

Please sign in to comment.