Skip to content

Commit

Permalink
fix: refresh gift wallet after swap (#465)
Browse files Browse the repository at this point in the history
* fix: refresh gift wallet after swap

* fix: also refresh wallet after transfer

* chore: revert fund
  • Loading branch information
Cafe137 committed Jul 5, 2022
1 parent e5bc658 commit afb8c31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/top-up/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export function Swap({ header }: Props): ReactElement {
} catch (error) {
enqueueSnackbar(`Failed to swap: ${error}`, { variant: 'error' })
} finally {
balance?.refresh()
setLoading(false)
}
}
Expand Down

0 comments on commit afb8c31

Please sign in to comment.