We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1afd13 commit f4bfe27Copy full SHA for f4bfe27
1 file changed
frontend/src/ts/db.ts
@@ -109,6 +109,12 @@ export async function initSnapshot(): Promise<
109
};
110
}
111
112
+ if (configData !== null && !("config" in configData)) {
113
+ throw new Error(
114
+ "Config data is not in the correct format. Please refresh the page or contact support."
115
+ );
116
+ }
117
+
118
snap.name = userData.name;
119
snap.personalBests = userData.personalBests;
120
snap.personalBests ??= {
0 commit comments