From 75546c69402029ce85ea9dae2b02fbd86f99a34b Mon Sep 17 00:00:00 2001 From: Jeremy <168515712+jeremy-babylonlabs@users.noreply.github.com> Date: Thu, 19 Sep 2024 01:47:00 +0800 Subject: [PATCH] floor to three decimals and update n.a. ui (#157) --- src/app/components/Points/DelegationPoints.tsx | 2 +- src/app/components/Points/StakerPoints.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/Points/DelegationPoints.tsx b/src/app/components/Points/DelegationPoints.tsx index 387cef12..a7e84ff5 100644 --- a/src/app/components/Points/DelegationPoints.tsx +++ b/src/app/components/Points/DelegationPoints.tsx @@ -25,7 +25,7 @@ export const DelegationPoints: React.FC = ({

Points: - {points !== undefined ? points : 0} + {points !== undefined ? points.toFixed(3) : "n.a."}

); diff --git a/src/app/components/Points/StakerPoints.tsx b/src/app/components/Points/StakerPoints.tsx index d41a3cf9..18260f85 100644 --- a/src/app/components/Points/StakerPoints.tsx +++ b/src/app/components/Points/StakerPoints.tsx @@ -32,7 +32,7 @@ export const StakerPoints: React.FC = ({ return (

- {points !== undefined ? points : 0} + {points !== undefined ? points.toFixed(3) : "n.a."}

);