mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-05 21:06:21 +03:00
fixed percent change null handler
This commit is contained in:
parent
f7d9dc5ca5
commit
7ccbed82bd
@ -40,12 +40,17 @@ export const CoinBasics = ({
|
||||
<Text style={styles.textCoinTitle}>{coinSymbol}</Text>
|
||||
</View>
|
||||
|
||||
<Text style={styles.textHeaderChange}>
|
||||
|
||||
{percentChange ? (
|
||||
<Text style={styles.textHeaderChange}>
|
||||
{intl.formatMessage({ id: 'wallet.change' })}
|
||||
<Text style={percentChange > 0 ? styles.textPositive : styles.textNegative}>
|
||||
{percentChange ? ` ${percentChange >= 0 ? '+' : ''}${percentChange.toFixed(1)}%` : ' ---'}
|
||||
</Text>
|
||||
</Text>
|
||||
):(
|
||||
<View style={styles.textHeaderChange}/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
|
@ -55,7 +55,7 @@ export const CoinSummary = ({
|
||||
valuePairs={valuePairs}
|
||||
extraData={extraDataPairs}
|
||||
coinSymbol={coinSymbol}
|
||||
percentChange={percentChagne}
|
||||
// percentChange={percentChagne}
|
||||
isEngine={coinData.isEngine}
|
||||
onInfoPress={onInfoPress}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user