mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix issue where transaction items without a TRANSACTION_CONFIRMED_EVENT have unhandled error when clicking into activity log (#13221)
This commit is contained in:
parent
94dc287bb1
commit
df48c424a4
@ -196,9 +196,11 @@ export function getActivities(transaction, isFirstTransaction = false) {
|
||||
const filteredAcc = acc.find(
|
||||
(ac) => ac.eventKey === TRANSACTION_CONFIRMED_EVENT,
|
||||
);
|
||||
if (filteredAcc !== undefined) {
|
||||
filteredAcc.timestamp = new Date(
|
||||
parseInt(entry.value, 16) * 1000,
|
||||
).getTime();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user