Skip to content

Commit

Permalink
Merge pull request #15 from SKKUD/develop
Browse files Browse the repository at this point in the history
fixed window error
  • Loading branch information
daniel2231 committed May 25, 2024
2 parents 8149ebb + d98ca27 commit 1fa8144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/(main)/settings/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Settings = () => {
const [showPassword1, setShowPassword1] = useState(false);
const [showPassword2, setShowPassword2] = useState(false);
const [showPasswordConfirm, setShowPasswordConfirm] = useState(false);
const [userId, setUserId] = useState(window.localStorage.getItem('userid'));
const [userId, setUserId] = useState('');

const [passwordMatchError, setPasswordMatchError] = useState(false);

Expand All @@ -50,6 +50,7 @@ const Settings = () => {
});

useEffect(() => {
setUserId(window.localStorage.getItem('userId'));
setInputValue({
presidentName: window.localStorage.getItem('presidentName'),
presidentContact: window.localStorage.getItem('presidentContact'),
Expand Down

0 comments on commit 1fa8144

Please sign in to comment.