force page to reload after successful transaction

This commit was merged in pull request #37.
This commit is contained in:
victorAnumudu
2023-05-04 12:09:18 +01:00
parent fb4939946e
commit a50b9f0026
4 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -39,6 +39,7 @@ function ConfirmAddFund({payment}) {
toast.success('Account Topup was sucessful')
setTimeout(()=>{
navigate('/my-wallet', {replace: true})
window.location.reload(true)
}, 1000)
}).catch(err => {
// do something
@@ -78,7 +79,7 @@ function ConfirmAddFund({payment}) {
useEffect(()=>{
// what happens if not state redirect user
if(!state){
navigate('../add-fund',{replace: true})
navigate('/my-wallet/add-fund',{replace: true})
}else{
setPageLoading(false)
}