Futa Arai 3 лет назад
Родитель
Сommit
7837d75491
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/client/services/guest-questionnaire-answer-status.ts

+ 1 - 1
packages/app/src/client/services/guest-questionnaire-answer-status.ts

@@ -25,7 +25,7 @@ const getStorage = (): GuestQuestionnaireAnswerStatusStorage | null => {
     if (currentStorage) {
     if (currentStorage) {
       const storageJson: GuestQuestionnaireAnswerStatusStorage = JSON.parse(currentStorage);
       const storageJson: GuestQuestionnaireAnswerStatusStorage = JSON.parse(currentStorage);
 
 
-      // delete status if outdated
+      // delete status if outdated to prevent localStorage expansion
       // change skipped to not_answered if different date than when skipped
       // change skipped to not_answered if different date than when skipped
       Object.keys(storageJson).forEach((key) => {
       Object.keys(storageJson).forEach((key) => {
         const answerStatus = storageJson[key];
         const answerStatus = storageJson[key];