1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-24 17:24:18 +00:00

Fix the wrong number of seconds to reconnection getting displayed

This commit is contained in:
Steffo 2023-08-19 05:25:52 +02:00
parent 9c6b9f9b3d
commit 3a30bceb80
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -54,7 +54,7 @@ export function BoardMain({lang, className, columning, sorting, grouping, setEdi
case WebSocket.CLOSED:
return <SplashWithIcon
icon={<FontAwesomeIcon size={"4x"} icon={faLinkSlash}/>}
text={t("boardDisconnected", { retryingInSeconds: Math.ceil(webSocketBackoffMs ?? 0 / 1000).toString() })}
text={t("boardDisconnected", { retryingInSeconds: Math.ceil((webSocketBackoffMs ?? 0) / 1000).toString() })}
className={className}
/>
}