Skip to content

Commit

Permalink
fix(transactions): ERC20 token amount without operator search
Browse files Browse the repository at this point in the history
(cherry picked from commit ea9bdfd)
  • Loading branch information
keraf authored and tsusanka committed Mar 4, 2021
1 parent 50633a7 commit 20f269e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/suite/src/utils/wallet/transactionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,8 @@ export const simpleSearchTransactions = (
// Searching for an amount (without operator)
if (!Number.isNaN(search)) {
const foundTxsForNumber = transactions.flatMap(t => {
const targetAmount = getTargetAmount(t.targets[0], t);
const targetAmount =
t.targets[0] !== undefined ? getTargetAmount(t.targets[0], t) : t.amount;
if (!targetAmount || !targetAmount.includes(search)) {
return [];
}
Expand Down

0 comments on commit 20f269e

Please sign in to comment.