Skip to content

Commit

Permalink
Make code more readable and error-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySharabin committed Dec 29, 2020
1 parent bb458b8 commit 6056026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavo-firebase-firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
permission: "login",

condition () {
return !!mavo.primaryBackend.project && mavo.primaryBackend.authProviders.includes(p);
return Boolean(mavo.primaryBackend.project) && mavo.primaryBackend.authProviders?.includes?.(p);
}
};
});
Expand Down

0 comments on commit 6056026

Please sign in to comment.