We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07eb557 commit 6f6a69eCopy full SHA for 6f6a69e
src/frontend/components/Standings/SessionBar/SessionBar.tsx
@@ -17,9 +17,11 @@ export const SessionBar = () => {
17
)}
18
{timeRemaining <= 86400 && ( // 86400 seconds = 24 hours
19
<div className="flex flex-1 grow justify-center">
20
- {timeElapsed
21
- ? `${formatTimeShort(timeElapsed)} / ${formatTimeShort(timeRemaining, true)} m`
22
- : ''}
+ {(() => {
+ const elapsed = formatTimeShort(timeElapsed);
+ const remaining = formatTimeShort(timeRemaining, true);
23
+ return elapsed ? `${elapsed} / ${remaining} m` : `${remaining} m`;
24
+ })()}
25
</div>
26
27
<div className="flex flex-1 grow justify-end">
0 commit comments