Use ∞ instead of Infinity
This commit is contained in:
parent
45fa056cab
commit
714df4eb67
|
@ -6,6 +6,9 @@ export default function Ratio({ up, down }) {
|
|||
if (isNaN(ratio)) {
|
||||
return <span>0</span>;
|
||||
}
|
||||
if (!isFinite(ratio)) {
|
||||
return <span>∞</span>;
|
||||
}
|
||||
return (
|
||||
<span>
|
||||
{`${
|
||||
|
|
Loading…
Reference in New Issue
Block a user