mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 16:52:38 +00:00
Fix issues making brews when not signed in
This commit is contained in:
@@ -96,7 +96,7 @@ app.get('/user/:username', async (req, res, next)=>{
|
||||
|
||||
let googleBrews = [];
|
||||
|
||||
if(req.account.googleId){
|
||||
if(req.account && req.account.googleId){
|
||||
console.log('GETTING DATA FOR USER PAGE');
|
||||
googleBrews = await GoogleActions.listGoogleBrews(req, res)
|
||||
.catch((err)=>{
|
||||
|
||||
Reference in New Issue
Block a user