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) {
|
||||
if (event.reason.name === "QuotaExceededError") {
|
||||
if (event.reason?.name === "QuotaExceededError") {
|
||||
event.preventDefault();
|
||||
setDatabaseError({
|
||||
name: event.reason.name,
|
||||
|
Loading…
Reference in New Issue
Block a user