We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2374c23 commit cf58fcdCopy full SHA for cf58fcd
1 file changed
client/src/containers/updateuser/index.js
@@ -13,7 +13,7 @@ const defaultLoadingState = {
13
14
function UpdateUserContainer () {
15
const location = useLocation()
16
- const [state, setState] = useState(location?.state || defaultState)
+ const [state, setState] = useState(location.state ? { ...location.state, password: '' } : defaultState)
17
const [loading, setLoading] = useState(defaultLoadingState)
18
19
const onInputChange = (e) => {
0 commit comments