File tree 1 file changed +7
-7
lines changed
web/src/pages/Courts/CourtDetails
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -229,23 +229,23 @@ const Stats = () => {
229
229
230
230
const timeframedStats : ITimeframedStat [ ] = [
231
231
{
232
- title : "PNK for 1 ETH " ,
232
+ title : "PNK for 1 USD " ,
233
233
getText : ( data ) => {
234
234
const treeExpectedRewardPerPnk = data ?. treeExpectedRewardPerPnk ;
235
- if ( ! treeExpectedRewardPerPnk ) return "N/A" ;
236
- const pnkNeeded = treeExpectedRewardPerPnk ;
235
+ const ethPriceUSD = pricesData ? pricesData [ CoinIds . ETH ] ?. price : undefined ;
236
+ if ( ! ethPriceUSD || ! treeExpectedRewardPerPnk ) return "N/A" ;
237
+ const pnkNeeded = treeExpectedRewardPerPnk * ethPriceUSD ;
237
238
return beautifyStatNumber ( pnkNeeded ) ;
238
239
} ,
239
240
color : "orange" ,
240
241
icon : RewardsPerPnk ,
241
242
} ,
242
243
{
243
- title : "PNK for 1 USD " ,
244
+ title : "PNK for 1 ETH " ,
244
245
getText : ( data ) => {
245
246
const treeExpectedRewardPerPnk = data ?. treeExpectedRewardPerPnk ;
246
- const ethPriceUSD = pricesData ? pricesData [ CoinIds . ETH ] ?. price : undefined ;
247
- if ( ! ethPriceUSD || ! treeExpectedRewardPerPnk ) return "N/A" ;
248
- const pnkNeeded = treeExpectedRewardPerPnk * ethPriceUSD ;
247
+ if ( ! treeExpectedRewardPerPnk ) return "N/A" ;
248
+ const pnkNeeded = treeExpectedRewardPerPnk ;
249
249
return beautifyStatNumber ( pnkNeeded ) ;
250
250
} ,
251
251
color : "orange" ,
You can’t perform that action at this time.
0 commit comments