Skip to content

Commit

Permalink
Update ResetPasswordPage.tsx
Browse files Browse the repository at this point in the history
delete Location
  • Loading branch information
JamesCai23 authored Sep 8, 2024
1 parent feb85b7 commit 5ea66b8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/src/ResetPasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import axios from 'axios';
import { useLocation } from 'react-router-dom';

Check warning on line 4 in frontend/src/ResetPasswordPage.tsx

View workflow job for this annotation

GitHub Actions / build

'useLocation' is defined but never used

const ResetPasswordPage: React.FC = () => {
const location = useLocation();

const onFinish = async (values: { token: any; password: any; }) => {
try {
await axios.post(`${process.env.REACT_APP_BACKEND_URL}/user/change-password/action`,
Expand Down

0 comments on commit 5ea66b8

Please sign in to comment.