@@ -34,7 +34,9 @@ import {
34
34
StartWalletActionPayload ,
35
35
} from 'redux/slices/ui/web3-wallet-last-action' ;
36
36
import { updateUTXOStatus } from 'redux/slices/wallet/advanced-stakes-rewards' ;
37
+ import { getChainBalance } from 'redux/slices/wallet/chain-balance' ;
37
38
import { poolV0ExitDelaySelector } from 'redux/slices/wallet/poolV0' ;
39
+ import { getZkpTokenBalance } from 'redux/slices/wallet/zkp-token-balance' ;
38
40
import { parseTxErrorMessage } from 'services/errors' ;
39
41
import { generateRootKeypairs } from 'services/keys' ;
40
42
import { exit } from 'services/pool' ;
@@ -157,6 +159,8 @@ export default function SecondStageRedeem(props: {
157
159
reward . id ,
158
160
UTXOStatus . SPENT ,
159
161
] ) ;
162
+ dispatch ( getZkpTokenBalance , context ) ;
163
+ dispatch ( getChainBalance , context ) ;
160
164
161
165
openNotification (
162
166
'Withdrawal completed successfully' ,
@@ -169,7 +173,7 @@ export default function SecondStageRedeem(props: {
169
173
'info' ,
170
174
10000 ,
171
175
) ;
172
- } , [ dispatch , library , account , chainId , reward ] ) ;
176
+ } , [ dispatch , library , account , chainId , reward , context ] ) ;
173
177
174
178
useEffect ( ( ) => {
175
179
const timer = setInterval ( ( ) => {
@@ -267,8 +271,9 @@ export default function SecondStageRedeem(props: {
267
271
< PrimaryActionButton
268
272
onClick = { closeModalAndRedeem }
269
273
disabled = { ! isLockPeriodPassed }
270
- styles = { `redeem-modal-button
271
- ${ ! isLockPeriodPassed && 'disabled' } ` }
274
+ styles = { `redeem-modal-button ${
275
+ ! isLockPeriodPassed && 'disabled'
276
+ } `}
272
277
>
273
278
{ isLockPeriodPassed ? (
274
279
< Typography > Redeem { zZKP } ZKP</ Typography >
0 commit comments