Skip to content

Commit

Permalink
fix: display internal tx type when internal tx callType empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao committed Nov 9, 2022
1 parent 4ccfa23 commit 4b2f9e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/transactions/hook/useInternalTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export default function useInternalTransactions({ hash }: { hash: string }) {
valueToken: 'asa',
// valueCurrency: internalItem.
hash: internalItem?.transactionHash,
labelStatus: upperCaseFirstLetterOfWord(evmInternalTransactionType(internalItem?.callType)),
labelStatus: upperCaseFirstLetterOfWord(
evmInternalTransactionType(internalItem?.callType || internalItem?.type)
),
type: 'MsgEthereumTx',
status: internalItem?.errCode === '',
from: internalItem?.from,
Expand Down

0 comments on commit 4b2f9e7

Please sign in to comment.