Skip to content

Commit

Permalink
fix: show network picker button only if networkProps are present
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Sep 25, 2024
1 parent 583b0aa commit 4c15bdb
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,14 @@ export function AssetPicker({
}}
sendingAsset={sendingAsset}
network={networkProps?.network ? networkProps.network : undefined}
onNetworkPickerClick={() => {
setShowAssetPickerModal(false);
setIsSelectingNetwork(true);
}}
onNetworkPickerClick={
networkProps
? () => {
setShowAssetPickerModal(false);
setIsSelectingNetwork(true);
}
: undefined
}
defaultActiveTabKey={
asset?.type === AssetType.NFT ? TabName.NFTS : TabName.TOKENS
}
Expand Down

0 comments on commit 4c15bdb

Please sign in to comment.