Added check for name in unhandled error
This commit is contained in:
parent
bbcc123e4e
commit
aad173830c
@ -40,7 +40,7 @@ export function DatabaseProvider({ children }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function handleDatabaseError(event) {
|
function handleDatabaseError(event) {
|
||||||
if (event.reason.name === "QuotaExceededError") {
|
if (event.reason?.name === "QuotaExceededError") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
setDatabaseError({
|
setDatabaseError({
|
||||||
name: event.reason.name,
|
name: event.reason.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user