Skip to content

Commit ca76a5b

Browse files
committed
Remove unneeded dispatch from change pin form
1 parent 7ca3c78 commit ca76a5b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/features/pincode/ChangePincodeForm.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useLayoutEffect, useState } from 'react'
1+
import { useState } from 'react'
22
import { useDispatch } from 'react-redux'
33
import { useNavigate } from 'react-router'
44
import { Button } from 'src/components/buttons/Button'
@@ -61,10 +61,6 @@ export function ChangePincodeForm() {
6161
navigate(-1)
6262
}
6363

64-
useLayoutEffect(() => {
65-
dispatch(pincodeActions.reset())
66-
}, [])
67-
6864
const { showModalAsync } = useModal()
6965
const onSuccess = async () => {
7066
await showModalAsync(

0 commit comments

Comments
 (0)