File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11import { useState } from "react" ;
2- import { useRouter } from "next/router" ;
32import { changePassword } from "@/api/changepassword" ;
43import Input from "@/components/input/Input" ;
54import { toast } from "react-toastify" ;
65
76export default function ChangePassword ( ) {
8- const router = useRouter ( ) ;
97 const [ password , setPassword ] = useState ( "" ) ;
108 const [ newPassword , setNewPassword ] = useState ( "" ) ;
119 const [ checkNewpassword , setCheckNewPassword ] = useState ( "" ) ;
Original file line number Diff line number Diff line change @@ -40,11 +40,10 @@ export default function MyPage() {
4040 } ;
4141
4242 useEffect ( ( ) => {
43- if ( isInitialized && user ) {
43+ if ( isInitialized ) {
4444 fetchDashboards ( ) ;
45- fetchUserData ( ) ;
4645 }
47- } , [ isInitialized , user ] ) ;
46+ } , [ isInitialized ] ) ;
4847
4948 if ( ! isInitialized || ! user ) {
5049 return < LoadingSpinner /> ;
You can’t perform that action at this time.
0 commit comments