Skip to content

Commit

Permalink
Merge pull request #128 from zkLinkProtocol/feature-withdraw
Browse files Browse the repository at this point in the history
fix: Provide default display content closed #127
  • Loading branch information
MickWang authored Apr 17, 2024
2 parents 2c3a233 + 75d151c commit dce0f95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/transaction/TransferLineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ const getl1NetworkName = () => {
from: eraNetwork.value.name,
to: eraNetwork.value.name,
};
} else if (type === "withdrawal") {
const newNetwork = zkSyncNetworks.find(
(item) => item.key && item.key.toLowerCase() === (props.transfer.token?.networkKey || 'primary').toLowerCase()
)
return {
from: newNetwork?.l1Network?.name,
to: newNetwork?.l1Network?.name,
};
} else {
return {
from: getNetworkInfo().l1Network?.name,
Expand Down

0 comments on commit dce0f95

Please sign in to comment.