From 402c0b77fd605555e68882f787be566373f50729 Mon Sep 17 00:00:00 2001 From: Dorothy Yau Date: Wed, 11 Dec 2024 14:45:02 +0000 Subject: [PATCH] fix: local storage school being reset on downloads page after sign in --- .../hooks/downloadAndShareHooks/useResourceFormState.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/TeacherComponents/hooks/downloadAndShareHooks/useResourceFormState.tsx b/src/components/TeacherComponents/hooks/downloadAndShareHooks/useResourceFormState.tsx index 4b819ea6c9..119121d6d9 100644 --- a/src/components/TeacherComponents/hooks/downloadAndShareHooks/useResourceFormState.tsx +++ b/src/components/TeacherComponents/hooks/downloadAndShareHooks/useResourceFormState.tsx @@ -108,11 +108,6 @@ export const useResourceFormState = (props: UseResourceFormStateProps) => { if (schoolId) { setValue("school", schoolIdFromLocalStorage); } - } else { - setSchoolInLocalStorage({ - schoolId: "notListed", - schoolName: "notListed", - }); } };