File tree Expand file tree Collapse file tree
client/modules/User/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import React , { useEffect } from 'react' ;
22import { useDispatch , useSelector } from 'react-redux' ;
33import { Tab , Tabs , TabList , TabPanel } from 'react-tabs' ;
44import { Helmet } from 'react-helmet' ;
@@ -17,6 +17,7 @@ import { hideErrorModal } from '../../IDE/actions/ide';
1717import { Overlay } from '../../App/components/Overlay' ;
1818import Toast from '../../IDE/components/Toast' ;
1919import { RootState } from '../../../reducers' ;
20+ import { resetPasswordReset } from '../actions' ;
2021
2122function SocialLoginPanel ( ) {
2223 const { t } = useTranslation ( ) ;
@@ -50,6 +51,10 @@ function SocialLoginPanel() {
5051export function AccountView ( ) {
5152 const { t } = useTranslation ( ) ;
5253 const dispatch = useDispatch ( ) ;
54+
55+ useEffect ( ( ) => {
56+ dispatch ( resetPasswordReset ( ) ) ;
57+ } , [ dispatch ] ) ;
5358 const location = useLocation ( ) ;
5459 const queryParams = parse ( location . search ) ;
5560 const showError = ! ! queryParams . error ;
You can’t perform that action at this time.
0 commit comments