From b1d84ec7ad090c138a60e05895e3457dc5daefa9 Mon Sep 17 00:00:00 2001 From: hyuna Date: Tue, 25 Jun 2024 16:28:21 +0900 Subject: [PATCH] fix : error --- src/app/main/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main/page.tsx b/src/app/main/page.tsx index 90baa03..7e2f865 100644 --- a/src/app/main/page.tsx +++ b/src/app/main/page.tsx @@ -56,9 +56,9 @@ const Main = () => { const teachername = getName.name; localStorage.setItem("name", teachername); const grade = getName.grade; - localStorage.setItem("grade", "2"); + localStorage.setItem("grade", JSON.stringify(grade)); const class_num = getName.class_num; - localStorage.setItem("class_num", "2"); + localStorage.setItem("class_num", JSON.stringify(class_num)); } }, [getName]);