Fix issues making brews when not signed in

This commit is contained in:
Trevor Buckner committed 2020-10-06 14:20:09 -04:00
1 parent 657a374895
commit 864cc7a7bb
4 files changed
+7 -4

No files matched your search

+4 -2
View File
@@ -137,8 +137,10 @@ const EditPage = createClass({
toggleGoogleStorage : function(){
this.setState((prevState)=>({
saveGoogle : !prevState.saveGoogle
}));
saveGoogle : !prevState.saveGoogle,
isSaving : false,
errors : null
}), ()=>this.trySave());
},
save : async function(){
+1 -1
View File
@@ -35,7 +35,7 @@ const NewPage = createClass({
text : '',
isSaving : false,
saveGoogle : (global.account.googleId ? true : false),
saveGoogle : (global.account && global.account.googleId ? true : false),
errors : []
};
},