Skip to content

Commit d73f04e

Browse files
account available balance make cutted #2604
1 parent 4ab4dec commit d73f04e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/modules/Account/AccountScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ class Account extends React.PureComponent {
360360
currencyCode: selectedCryptoCurrencyData.currencyCode,
361361
currencySymbol: selectedCryptoCurrencyData.currencySymbol,
362362
currencyName: selectedCryptoCurrencyData.currencyName,
363-
currencyExplorerLink: selectedCryptoCurrencyData.currencyExplorerLink
363+
currencyExplorerLink: selectedCryptoCurrencyData.currencyExplorerLink,
364+
decimals: selectedCryptoCurrencyData.decimals
364365
}}
365366
isSegwit={isSegwit}
366367
cacheAsked={CACHE_ASKED}

app/modules/Account/elements/HeaderBlocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class HeaderBlocks extends React.Component {
156156
const { isBalanceVisible, isBalanceVisibleTriggered, originalVisibility, account } = this.props
157157
const finalIsBalanceVisible = isBalanceVisibleTriggered ? isBalanceVisible : originalVisibility
158158

159-
const { currencyCode, currencySymbol } = this.props.cryptoCurrency
159+
const { currencyCode, currencySymbol, decimals } = this.props.cryptoCurrency
160160

161161
const canBeStaked = currencyCode === 'TRX' || currencyCode === 'SOL'
162162
const withoutDescription = currencyCode === 'SOL'
@@ -194,7 +194,7 @@ class HeaderBlocks extends React.Component {
194194
>
195195
{diffAvailable &&
196196
<Text style={[styles.availableText, { color: colors.common.text3, marginBottom: GRID_SIZE / 3 }]}>
197-
{`${strings('settings.walletList.available')}: ${finalIsBalanceVisible ? balanceTotalPretty + ' ' + currencySymbol : ' ****'}`}
197+
{`${strings('settings.walletList.available')}: ${finalIsBalanceVisible ? BlocksoftPrettyNumbers.makeCut(balanceTotalPretty, decimals).cutted + ' ' + currencySymbol : ' ****'}`}
198198
</Text>}
199199
{!withoutDescription &&
200200
<Text style={styles.availableText}>

0 commit comments

Comments
 (0)