changed the default dbsnapshot value

This commit is contained in:
Jack 2020-06-08 20:12:01 +01:00
parent 7f0031ea88
commit c100c99d01
2 changed files with 2 additions and 2 deletions

View file

@ -689,7 +689,7 @@ function refreshAccountPage() {
swapElements($(".pageAccount .preloader"), $(".pageAccount .content"), 250);
}
if (dbSnapshot.length == 0) {
if (dbSnapshot === null) {
// console.log('no db snap');
// db_getUserResults().then(data => {
// if(!data) return;

View file

@ -1,6 +1,6 @@
const db = firebase.firestore();
let dbSnapshot = [];
let dbSnapshot = null;
async function db_getUserSnapshot() {