From b869d086ea26777be1bf0f2861b50783af6e0f22 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 19 Jul 2023 20:39:33 +1200 Subject: [PATCH] Add default to New Page --- client/homebrew/pages/newPage/newPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/pages/newPage/newPage.jsx b/client/homebrew/pages/newPage/newPage.jsx index 73e83960c..008749b41 100644 --- a/client/homebrew/pages/newPage/newPage.jsx +++ b/client/homebrew/pages/newPage/newPage.jsx @@ -57,7 +57,7 @@ const NewPage = createClass({ const metaStorage = JSON.parse(localStorage.getItem(METAKEY)); SAVEKEY = `HOMEBREWERY-DEFAULT-SAVE-LOCATION-${global.account.username}`; - const saveStorage = localStorage.getItem(SAVEKEY); + const saveStorage = localStorage.getItem(SAVEKEY) || 'HOMEBREWERY'; brew.text = brewStorage ?? brew.text; brew.style = styleStorage ?? brew.style;