From e8d16b34ca64b2a8238b49a1cced0967266326c5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 16 Aug 2023 16:55:46 +0200 Subject: [PATCH] Fix type error in BoardMain --- .../src/app/[lang]/board/[board]/(page)/(view)/BoardMain.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todoblue/src/app/[lang]/board/[board]/(page)/(view)/BoardMain.tsx b/todoblue/src/app/[lang]/board/[board]/(page)/(view)/BoardMain.tsx index f62fa26..96ed4a4 100644 --- a/todoblue/src/app/[lang]/board/[board]/(page)/(view)/BoardMain.tsx +++ b/todoblue/src/app/[lang]/board/[board]/(page)/(view)/BoardMain.tsx @@ -54,7 +54,7 @@ export function BoardMain({lang, className, columning, sorting, grouping, setEdi case WebSocket.CLOSED: return } - text={t("boardDisconnected", { retryingInSeconds: Math.ceil(webSocketBackoffMs / 1000).toString() })} + text={t("boardDisconnected", { retryingInSeconds: Math.ceil(webSocketBackoffMs ?? 0 / 1000).toString() })} className={className} /> }