From cd97f60b0e57ed9fcd83a5288a2be5642fb58720 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:59:28 -0500 Subject: [PATCH] [F] Fix return --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 15cee76..00d507f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -73,7 +73,7 @@ export const Fmt = { export const Backend = { get: (id: string) => fetch(`${cfg.backend}/${id}`).then(r => { if (!r.ok) throw new Error(`Failed to get puzzle: ${r.status}`) - r.text() + return r.text() }).then(JsonTy.parse), post: (data: Checkpoint) => fetch(`${cfg.backend}/`, { method: "post", body: JsonTy.stringify(data) }), }