From f78393d92b3621b9b7433a648992ded521219839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 27 Feb 2026 02:28:59 +0100 Subject: [PATCH] pl-api: need some eep enough for today MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/entities/status.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/pl-api/lib/entities/status.ts b/packages/pl-api/lib/entities/status.ts index 99aef6785..033b287fc 100644 --- a/packages/pl-api/lib/entities/status.ts +++ b/packages/pl-api/lib/entities/status.ts @@ -50,7 +50,11 @@ const baseStatusSchema = v.object({ account: v.pipe( v.unknown(), v.transform((account) => { - if ((window as any)?.__PL_API_FALLBACK_ACCOUNT && JSON.stringify(account) === '{}') + if ( + typeof window !== 'undefined' && + (window as any).__PL_API_FALLBACK_ACCOUNT && + JSON.stringify(account) === '{}' + ) return (window as any).__PL_API_FALLBACK_ACCOUNT; return account; }),