diff --git a/ts/store/session.ts b/ts/store/session.ts index ec87339d..a38b5988 100644 --- a/ts/store/session.ts +++ b/ts/store/session.ts @@ -23,7 +23,7 @@ export const useSessionStore = defineStore("session", () => { // Subscription SSEManager.subscribe((msg: SSEMessage) => { - if (msg.type !== "sync:session") { + if (msg.type == "sync:session") { fetchSession(); } }); diff --git a/ts/view/review/Pool.vue b/ts/view/review/Pool.vue index cb2a1996..2723de9a 100644 --- a/ts/view/review/Pool.vue +++ b/ts/view/review/Pool.vue @@ -280,11 +280,11 @@ async function submitReview(action: "committed" | "discarded"): Promise { }; const response = await fetch("/api/review/pool", { - method: "POST", + body: JSON.stringify(payload), headers: { "Content-Type": "application/json", }, - body: JSON.stringify(payload), + method: "POST", }); if (!response.ok) {