Merge pull request #2198 from BlueWallet/fix-1269

FIX: When wallet card has balance but no txs it displays 'pull to ref…
This commit is contained in:
GLaDOS 2020-11-23 23:17:09 +00:00 committed by GitHub
commit 293f824100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}
</Text>
<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>
</LinearGradient>
</TouchableWithoutFeedback>

View file

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