Skip to content

Commit

Permalink
fix: cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
vien.nguyen2-tiki committed Feb 7, 2023
1 parent f93c9ea commit bfbfa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/transactions/hook/useConvertData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function useConvertData({ data }: { data: TransactionDetail }) {
(data: TransactionDetail) => {
if (!data) return [[], []]
const items = _cardData(data, astraPrice)
const isEvm = !!data.evmHash
const cosmosCards = []
const { cosmosTxnMessages } = data
if (isArray(cosmosTxnMessages) && cosmosTxnMessages.length > 0) {
Expand All @@ -48,7 +47,7 @@ export default function useConvertData({ data }: { data: TransactionDetail }) {
cosmosSortItems.push(sortArrayFollowValue(cos, 'label', COSMOS_MESSAGE_SORT_FIELD))
}
const evmSortItems = []
if (isEvm) {
if (isEmpty(cosmosCards)) {
const evm = sortArrayFollowValue(items, 'label', EVM_MESSAGE_SORT_FIELD)
evmSortItems.push(evm)
}
Expand Down

0 comments on commit bfbfa52

Please sign in to comment.