Skip to content

Commit

Permalink
fix(swap): fixes issue where swap max button was filling in incorrect…
Browse files Browse the repository at this point in the history
… values causing api errors
  • Loading branch information
blockdylanb committed Aug 3, 2021
1 parent c075ab0 commit 44ae682
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -381,9 +381,10 @@ const Checkout: React.FC<InjectedFormProps<{}, Props> & Props> = (props) => {
<GreyBlueCartridge
role='button'
data-e2e='swapMax'
onClick={() =>
props.swapActions.handleSwapMinAmountClick(fix === 'FIAT' ? fiatMax : max)
}
onClick={() => {
props.swapActions.switchFix(quoteAmount, 'CRYPTO')
props.swapActions.handleSwapMinAmountClick(max)
}}
>
<FormattedMessage id='buttons.swap_max' defaultMessage='Swap Max' />
</GreyBlueCartridge>
Expand Down

0 comments on commit 44ae682

Please sign in to comment.