Skip to content

Commit

Permalink
Fix send assets data bug (#4265)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Jan 20, 2022
1 parent c038ae4 commit e1be017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/SendAssets/components/SendAssetsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ export const SendAssetsForm = ({ txConfig, onComplete, protectTxButton }: ISendF
const asset = values.asset;
const newAccount = getDefaultAccount(asset);
const newInitialValues = getInitialFormikValues({
s: txConfig,
// @ts-expect-error @todo Fix reliance on txConfig being {}
s: asset.uuid === txConfig.asset?.uuid ? txConfig : {},
defaultAccount: newAccount,
defaultAsset: asset,
defaultNetwork: getDefaultNetwork(newAccount),
Expand Down

0 comments on commit e1be017

Please sign in to comment.