From b1610123bb61a20b0a48b5d3ac647155f86401a0 Mon Sep 17 00:00:00 2001 From: max <39312833+fritzschoff@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:58:50 +0000 Subject: [PATCH] fix(rewards): decimals issues (#201) --- liquidity/ui/src/components/Rewards/Rewards.tsx | 1 - liquidity/ui/src/components/Rewards/RewardsRow.tsx | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/liquidity/ui/src/components/Rewards/Rewards.tsx b/liquidity/ui/src/components/Rewards/Rewards.tsx index 790159ad4..cd6ecef92 100644 --- a/liquidity/ui/src/components/Rewards/Rewards.tsx +++ b/liquidity/ui/src/components/Rewards/Rewards.tsx @@ -112,7 +112,6 @@ export const Rewards = ({ address={item.distributorAddress} readOnly={readOnly} total={item.total} - decimals={item.decimals} /> ))} diff --git a/liquidity/ui/src/components/Rewards/RewardsRow.tsx b/liquidity/ui/src/components/Rewards/RewardsRow.tsx index 91a9e8bae..3ac099f50 100644 --- a/liquidity/ui/src/components/Rewards/RewardsRow.tsx +++ b/liquidity/ui/src/components/Rewards/RewardsRow.tsx @@ -18,7 +18,6 @@ interface RewardsRowInterface { address: string; readOnly: boolean; total: number; - decimals: number; } export const RewardsRow = ({ @@ -31,7 +30,6 @@ export const RewardsRow = ({ address, readOnly, total, - decimals, }: RewardsRowInterface) => { const { accountId, collateralSymbol, poolId } = useParams(); @@ -111,13 +109,13 @@ export const RewardsRow = ({ {` ${symbol}`} - {lifetimeClaimed > 0 ? ( + {lifetimeClaimed > 0 && ( Lifetime:   - + {symbol} - ) : null} + )} {!readOnly && (