mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
changed the default dbsnapshot value
This commit is contained in:
parent
7f0031ea88
commit
c100c99d01
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const db = firebase.firestore();
|
||||
|
||||
let dbSnapshot = [];
|
||||
let dbSnapshot = null;
|
||||
|
||||
|
||||
async function db_getUserSnapshot() {
|
||||
|
|
Loading…
Reference in a new issue