Skip to content

Commit

Permalink
fix(ui-ux): fix displayed transaction type for 'transfer' txn
Browse files Browse the repository at this point in the history
  • Loading branch information
lykalabrada committed Nov 1, 2023
1 parent b87cd3b commit e6a644f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shared/transactionDataHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ export const getTransactionType = ({
// const involvesCoinTransfer =
// txTypes.includes(RawTransactionType.CoinTransfer) &&
// !txTypes.includes(RawTransactionType.ContractCreation);
const involvesContract =
isFromContract || isToContract || createdContract !== undefined;
const involvesContract = isFromContract || isToContract || createdContract;

if (involvesTokenTransfers) {
transactionType = getTransactionTypeFromTokenTransfers(tokenTransfers);
Expand Down

0 comments on commit e6a644f

Please sign in to comment.