Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion client/modules/User/pages/AccountView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import { Helmet } from 'react-helmet';
Expand All @@ -17,6 +17,7 @@ import { hideErrorModal } from '../../IDE/actions/ide';
import { Overlay } from '../../App/components/Overlay';
import Toast from '../../IDE/components/Toast';
import { RootState } from '../../../reducers';
import { resetPasswordReset } from '../actions';

function SocialLoginPanel() {
const { t } = useTranslation();
Expand Down Expand Up @@ -50,6 +51,10 @@ function SocialLoginPanel() {
export function AccountView() {
const { t } = useTranslation();
const dispatch = useDispatch();

useEffect(() => {
dispatch(resetPasswordReset());
}, [dispatch]);
const location = useLocation();
const queryParams = parse(location.search);
const showError = !!queryParams.error;
Expand Down
Loading