We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca3c78 commit ca76a5bCopy full SHA for ca76a5b
1 file changed
src/features/pincode/ChangePincodeForm.tsx
@@ -1,4 +1,4 @@
1
-import { useLayoutEffect, useState } from 'react'
+import { useState } from 'react'
2
import { useDispatch } from 'react-redux'
3
import { useNavigate } from 'react-router'
4
import { Button } from 'src/components/buttons/Button'
@@ -61,10 +61,6 @@ export function ChangePincodeForm() {
61
navigate(-1)
62
}
63
64
- useLayoutEffect(() => {
65
- dispatch(pincodeActions.reset())
66
- }, [])
67
-
68
const { showModalAsync } = useModal()
69
const onSuccess = async () => {
70
await showModalAsync(
0 commit comments