Skip to content

Commit

Permalink
fix: handleLogin username 옵셔널 체이닝 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
9yurilee committed Dec 18, 2024
1 parent 461a27f commit 6a40333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { setState } from "../store/store.js";
import { setStorage } from "../utils/storageHandler.js";

export const handleLogin = () => {
const username = document.getElementById("username").value;
const username = document.getElementById("username")?.value || "";

const userInfo = { username, email: "", bio: "" };

Expand Down

0 comments on commit 6a40333

Please sign in to comment.