File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
liquidity/ui/src/components/Rewards Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ export const Rewards = ({
112
112
address = { item . distributorAddress }
113
113
readOnly = { readOnly }
114
114
total = { item . total }
115
- decimals = { item . decimals }
116
115
/>
117
116
) ) }
118
117
</ Tbody >
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ interface RewardsRowInterface {
18
18
address : string ;
19
19
readOnly : boolean ;
20
20
total : number ;
21
- decimals : number ;
22
21
}
23
22
24
23
export const RewardsRow = ( {
@@ -31,7 +30,6 @@ export const RewardsRow = ({
31
30
address,
32
31
readOnly,
33
32
total,
34
- decimals,
35
33
} : RewardsRowInterface ) => {
36
34
const { accountId, collateralSymbol, poolId } = useParams ( ) ;
37
35
@@ -111,13 +109,13 @@ export const RewardsRow = ({
111
109
< Amount value = { wei ( claimableAmount ) } />
112
110
{ ` ${ symbol } ` }
113
111
</ Text >
114
- { lifetimeClaimed > 0 ? (
112
+ { lifetimeClaimed > 0 && (
115
113
< Text color = "gray.500" fontSize = "12px" fontFamily = "heading" lineHeight = "16px" >
116
114
< Tooltip label = "Total claimed over lifetime" > Lifetime: </ Tooltip >
117
- < Amount value = { wei ( lifetimeClaimed . toString ( ) , decimals , true ) } />
115
+ < Amount value = { wei ( lifetimeClaimed . toString ( ) , 18 , true ) } />
118
116
{ symbol }
119
117
</ Text >
120
- ) : null }
118
+ ) }
121
119
</ Fade >
122
120
</ Td >
123
121
{ ! readOnly && (
You can’t perform that action at this time.
0 commit comments