Fix infinity display

This commit is contained in:
DaneEveritt 2022-06-27 20:16:43 -04:00
parent 050d4e7a36
commit 7886251cd8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -34,7 +34,7 @@ const getBackgroundColor = (value: number, max: number | null): string | undefin
const Limit = ({ limit, children }: { limit: string | null; children: React.ReactNode }) => (
<>
{children}
<span className={'ml-1 text-gray-300 text-[70%] select-none'}>/ {limit || '&infin;'}</span>
<span className={'ml-1 text-gray-300 text-[70%] select-none'}>/ {limit || <>&infin;</>}</span>
</>
);