{actionData?.error === "DIFFERENT_SCORE" && (
diff --git a/app/utils/index.ts b/app/utils/index.ts
index 9dbc9c6cd..f3293cf29 100644
--- a/app/utils/index.ts
+++ b/app/utils/index.ts
@@ -3,6 +3,7 @@ import type { CSSProperties } from "react";
import { json, useLocation } from "remix";
import type { EventTargetRecorder } from "server/events";
import { z } from "zod";
+import { ADMIN_UUID } from "~/constants";
import { LoggedInUserSchema } from "~/utils/schemas";
export function flipObject<
@@ -56,6 +57,13 @@ export function requireEvents(ctx: unknown) {
}
}
+export function isTestUser(userId?: string) {
+ // latter is N-ZAP
+ return (
+ userId === ADMIN_UUID || userId === "6cd9d01d-b724-498a-b706-eb70edd8a773"
+ );
+}
+
// https://stackoverflow.com/a/57888548
export function fetchTimeout(url: string, ms: number, options: RequestInit) {
const controller = new AbortController();