Skip to content

Commit

Permalink
Fix transfer token via url
Browse files Browse the repository at this point in the history
  • Loading branch information
JIOjosBG committed Jun 27, 2024
1 parent fdc2e66 commit 8c20e69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Wallet/Transfer/Transfer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useLocation, withRouter, useParams } from 'react-router-dom'
import { useLocation, withRouter, useParams, useMemo } from 'react-router-dom'
import { useEffect, useState } from 'react'
import accountPresets from 'ambire-common/src/constants/accountPresets'
import cn from 'classnames'
Expand All @@ -25,6 +25,11 @@ const Transfer = (props) => {
const [assetAddrWithSymbol, setAsset] = useState(
selectedAsset && `${selectedAsset.address}:${selectedAsset.symbol}`
)

useEffect(()=>{
setAsset(selectedAsset && `${selectedAsset.address}:${selectedAsset.symbol}`)
}, [portfolio])

const [gasTankDetails] = useState(state || null)
const [address, setAddress] = useState(gasTankDetails ? accountPresets.feeCollector : '')

Expand Down

0 comments on commit 8c20e69

Please sign in to comment.