FIX: When wallet card has balance but no txs it displays 'pull to refresh' (closes #1269)

This commit is contained in:
Overtorment 2020-11-23 16:25:17 +00:00
parent 1b465c06a9
commit e9e9a2a3cf
2 changed files with 4 additions and 1 deletions

View file

@ -237,7 +237,9 @@ const WalletCarouselItem = ({ item, index, onPress, handleLongPress, isSelectedW
{loc.wallets.list_latest_transaction} {loc.wallets.list_latest_transaction}
</Text> </Text>
<Text numberOfLines={1} style={[iStyles.latestTxTime, { color: colors.inverseForegroundColor }]}> <Text numberOfLines={1} style={[iStyles.latestTxTime, { color: colors.inverseForegroundColor }]}>
{transactionTimeToReadable(item.getLatestTransactionTime())} {item.getBalance() !== 0 && item.getLatestTransactionTime() === 0
? loc.wallets.pull_to_refresh
: transactionTimeToReadable(item.getLatestTransactionTime())}
</Text> </Text>
</LinearGradient> </LinearGradient>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>

View file

@ -400,6 +400,7 @@
"select_wallet": "Select Wallet", "select_wallet": "Select Wallet",
"take_photo": "Take Photo", "take_photo": "Take Photo",
"xpub_copiedToClipboard": "Copied to clipboard.", "xpub_copiedToClipboard": "Copied to clipboard.",
"pull_to_refresh": "pull to refresh",
"xpub_title": "wallet XPUB" "xpub_title": "wallet XPUB"
}, },
"multisig": { "multisig": {