From 7c14d81a2428c99df99ac27517d5aa866bb165bf Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 7 May 2026 09:54:22 -0700 Subject: [PATCH] refactor utils --- client/src/Utils/statusCode.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/Utils/statusCode.ts b/client/src/Utils/statusCode.ts index 75e4a9b19..33a5f3de1 100644 --- a/client/src/Utils/statusCode.ts +++ b/client/src/Utils/statusCode.ts @@ -49,10 +49,8 @@ export const getNetworkErrorSubtype = (message?: string | null): NetworkErrorSub export const formatStatusCode = ( code: number | null | undefined, - t: TranslateFn, - fallback: string = "N/A" + t: TranslateFn ): string => { - if (code == null) return fallback; if (isNetworkError(code)) return t("common.statusCode.down"); return String(code); };