Skip to content

Commit

Permalink
fix: do not include token value when it's null (for NFTs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsters committed Oct 31, 2023
1 parent 1530053 commit bb14019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/api/mappers/transferMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const mapTransferListItem = (transfer: Transfer, lastBlockNumber: number)
transactionIndex: transfer.transaction?.transactionIndex.toString(),
from: transfer.from,
to: transfer.to,
value: transfer.amount,
value: transfer.amount || undefined,
tokenID: transfer.fields?.tokenId,
tokenName: transfer.token?.name,
tokenSymbol: transfer.token?.symbol,
Expand Down

0 comments on commit bb14019

Please sign in to comment.