Skip to content

Commit

Permalink
fix: refrsh flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders authored and losman0s committed Dec 18, 2023
1 parent cf4c80e commit 4b5ea83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ export const ActionBox = ({ requestedAction, requestedToken, isDialog }: ActionB
}, [requestedAction, setActionMode]);

React.useEffect(() => {
if (selectedBank && amount) {
if (amount) {
setIsAmountLoading(true)
setIsLoading(true)
} else {
setIsAmountLoading(false)
setIsLoading(false)
}
}, [setIsAmountLoading, setIsLoading, amount, selectedBank])
}, [setIsAmountLoading, setIsLoading, amount])

React.useEffect(() => {
if (amount && amount > maxAmount) {
Expand Down

0 comments on commit 4b5ea83

Please sign in to comment.