Skip to content

Commit

Permalink
Revert "daily number change, eslint fix"
Browse files Browse the repository at this point in the history
This reverts commit 2666c83.
  • Loading branch information
saanuregh authored Feb 28, 2021
1 parent 2666c83 commit 06174d5
Show file tree
Hide file tree
Showing 3 changed files with 1,196 additions and 1,916 deletions.
13 changes: 1 addition & 12 deletions components/Home/SubComponents/GraphCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ export default function GraphCard({
return (
<Card className="flex flex-col p-2">
<span className="text-base font-bold whitespace-no-wrap">{label}</span>
<span>
{Number.isInteger(value) ? (
<>
{`${value} `}
<span className="text-xxs font-semibold">
{delta ? (delta > 0 ? `+${delta}` : `-${Math.abs(delta)}`) : "-"}
</span>
</>
) : (
value.toFixed(2)
)}
</span>
<span>{Number.isInteger(value) ? value : value.toFixed(2)}</span>
<span className="text-xs">
{percent
? percent > 0
Expand Down
Loading

0 comments on commit 06174d5

Please sign in to comment.