Merge pull request #2114 from BlueWallet/Track-time-first-seen-of-unconfirmed-transactions-#1699-

FIX:  Track time first seen of unconfirmed transactions #1699
This commit is contained in:
GLaDOS 2020-11-11 18:01:43 +00:00 committed by GitHub
commit fbf180b7af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -1646,7 +1646,13 @@ export const BlueTransactionListItem = React.memo(({ item, itemPriceUnit = Bitco
[colors.lightBorder],
);
const title = useMemo(() => transactionTimeToReadable(item.received), [item.received]);
const title = useMemo(() => {
if (item.confirmations === 0) {
return loc.transactions.pending;
} else {
return transactionTimeToReadable(item.received);
}
}, [item.confirmations, item.received]);
const txMemo = txMetadata[item.hash]?.memo ?? '';
const subtitle = useMemo(() => {
let sub = item.confirmations < 7 ? loc.formatString(loc.transactions.list_conf, { number: item.confirmations }) : '';

View File

@ -310,8 +310,9 @@
"details_title": "Transaction",
"details_to": "Output",
"details_transaction_details": "Transaction details",
"enable_hw": "This wallet is not being used in conjunction with a hardwarde wallet. Would you like to enable hardware wallet use?",
"enable_hw": "This wallet is not being used in conjunction with a hardware wallet. Would you like to enable hardware wallet use?",
"list_conf": "conf: {number}",
"pending": "Pending",
"list_title": "transactions",
"rbf_explain": "We will replace this transaction with the one with a higher fee, so it should be mined faster. This is called RBF - Replace By Fee.",
"rbf_title": "Bump fee (RBF)",