Skip to content

Commit

Permalink
floor to three decimals and update n.a. ui (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs authored Sep 18, 2024
1 parent 591dd3d commit 75546c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Points/DelegationPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DelegationPoints: React.FC<DelegationPointsProps> = ({
<div className="flex items-center justify-end gap-1">
<p className="whitespace-nowrap">
<span className="lg:hidden">Points: </span>
{points !== undefined ? points : 0}
{points !== undefined ? points.toFixed(3) : "n.a."}
</p>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Points/StakerPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const StakerPoints: React.FC<StakerPointsProps> = ({
return (
<div className="flex items-center justify-end gap-1">
<p className="whitespace-nowrap font-semibold">
{points !== undefined ? points : 0}
{points !== undefined ? points.toFixed(3) : "n.a."}
</p>
</div>
);
Expand Down

0 comments on commit 75546c6

Please sign in to comment.