Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #402 from iotaledger/fix/desktop-history-hash-fix
Browse files Browse the repository at this point in the history
Desktop: Remove transaction `hash` key reference
  • Loading branch information
rihardsgravis committed Sep 20, 2018
2 parents beb45c9 + a22d07d commit 9bc95c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/desktop/src/ui/components/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ class List extends React.PureComponent {
}

if (
transfer.message.toLowerCase().indexOf(search) < 0 &&
transfer.bundle !== search &&
transfer.hash !== search &&
search.length &&
transfer.message.toLowerCase().indexOf(search.toLowerCase()) < 0 &&
transfer.bundle.toLowerCase().indexOf(search.toLowerCase()) !== 0 &&
(!/^\+?\d+$/.test(search) || transfer.transferValue < parseInt(search))
) {
return false;
Expand Down Expand Up @@ -203,7 +203,7 @@ class List extends React.PureComponent {

const failedBundles = Object.keys(failedHashes);

const activeTransfer = currentItem ? historyTx.filter((tx) => tx.hash === currentItem)[0] : null;
const activeTransfer = currentItem ? historyTx.filter((tx) => tx.bundle === currentItem)[0] : null;
const isActiveFailed = activeTransfer && failedBundles.indexOf(activeTransfer.bundle) > -1;

return (
Expand Down Expand Up @@ -273,7 +273,7 @@ class List extends React.PureComponent {
return (
<a
key={key}
onClick={() => setItem(transfer.hash)}
onClick={() => setItem(transfer.bundle)}
className={classNames(
isConfirmed ? css.confirmed : css.pending,
isReceived ? css.received : css.sent,
Expand Down

0 comments on commit 9bc95c6

Please sign in to comment.