From a2c20a0f7a3b7d201fc0448a0a7f45d23c866ce7 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Fri, 18 Aug 2023 20:35:26 +1200 Subject: [PATCH] Fix save location logic --- client/homebrew/pages/accountPage/accountPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/pages/accountPage/accountPage.jsx b/client/homebrew/pages/accountPage/accountPage.jsx index 40c3dfdbd..d08832427 100644 --- a/client/homebrew/pages/accountPage/accountPage.jsx +++ b/client/homebrew/pages/accountPage/accountPage.jsx @@ -35,7 +35,7 @@ const AccountPage = createClass({ if(!this.state.saveLocation && this.props.uiItems.username) { SAVEKEY = `HOMEBREWERY-DEFAULT-SAVE-LOCATION-${this.props.uiItems.username}`; let saveLocation = window.localStorage.getItem(SAVEKEY); - saveLocation = saveLocation ?? this.state.uiItems.googleId ? 'GOOGLE-DRIVE' : 'HOMEBREWERY'; + saveLocation = saveLocation ?? (this.state.uiItems.googleId ? 'GOOGLE-DRIVE' : 'HOMEBREWERY'); this.makeActive(saveLocation); } },