mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-29 02:07:55 +08:00
parent
bc7eb8a0ca
commit
5367accc05
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import * as AccountButton from "./elements/account-button";
|
||||
import * as Notifications from "./elements/notifications";
|
||||
import axiosInstance from "./axios-instance";
|
||||
import * as TodayTracker from "./test/today-tracker";
|
||||
import * as LoadingPage from "./pages/loading";
|
||||
|
||||
let dbSnapshot = null;
|
||||
|
|
@ -165,7 +164,6 @@ export async function getUserResults() {
|
|||
return a.timestamp < b.timestamp;
|
||||
});
|
||||
dbSnapshot.results = results.data;
|
||||
await TodayTracker.addAllFromToday();
|
||||
return true;
|
||||
} catch (e) {
|
||||
Notifications.add("Error getting results: " + e.message, -1);
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import * as LoadingPage from "./loading";
|
|||
import * as Focus from "../test/focus";
|
||||
import * as SignOutButton from "../account/sign-out-button";
|
||||
import axiosInstance from "../axios-instance";
|
||||
import * as TodayTracker from "./../test/today-tracker";
|
||||
|
||||
let filterDebug = false;
|
||||
//toggle filterdebug
|
||||
|
|
@ -1066,6 +1067,7 @@ export function update() {
|
|||
} else if (DB.getSnapshot().results === undefined) {
|
||||
LoadingPage.updateBar(45, true);
|
||||
DB.getUserResults().then((d) => {
|
||||
TodayTracker.addAllFromToday();
|
||||
if (d) {
|
||||
ResultFilters.updateActive();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue