Skip to content

Commit

Permalink
Merge pull request #660 from EYBlockchain/bea/fix-initial-token-matic
Browse files Browse the repository at this point in the history
fix: initialToken couldnt find MATIC due to lowerCase method
  • Loading branch information
Ilyas Ridhuan authored May 13, 2022
2 parents 5ab2da6 + 0dae48f commit 341197e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wallet/src/components/BridgeComponent/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ const BridgeComponent = () => {
const initialTx = history?.location?.tokenState?.initialTxType ?? 'deposit';
const initialToken =
supportedTokens.find(
t => t.address.toLowerCase() === history?.location?.tokenState?.tokenAddress,
t => t.address.toLowerCase() === history?.location?.tokenState?.tokenAddress.toLowerCase(),
) ?? supportedTokens[0];

const [token, setToken] = useState(initialToken);
const [txType, setTxType] = useState(initialTx);
const [transferValue, setTransferValue] = useState('0');
Expand Down

0 comments on commit 341197e

Please sign in to comment.