Skip to content

Commit

Permalink
Merge pull request #310 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
fix saviour withdraw
  • Loading branch information
mstfash authored Apr 4, 2022
2 parents 23c21fe + 8f42ff8 commit d73de57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/containers/OnBoarding/Saviour/SaviourOps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ const SaviourOps = () => {
)

const handleChange = (val: string, isDeposit: boolean) => {
if (!isDeposit && val !== availableWithdrawBalance) {
safeActions.setIsMaxWithdraw(false)
}
if (!isDeposit && val === availableWithdrawBalance) {
safeActions.setIsMaxWithdraw(true)
}
onTypedInput('')
safeActions.setIsSaviourDeposit(isDeposit)
onTypedInput(val)
Expand Down

0 comments on commit d73de57

Please sign in to comment.