drink-this / drink-this-frontend

A cocktail recommendation app. Find your new favorite based on ratings of other users like you.
https://drink-this-frontend.herokuapp.com/
0 stars 0 forks source link

Fix FE bug with onboard routing #91

Open redferret opened 2 years ago

redferret commented 2 years ago

in the google_sign_in.js file at line 33 update to this snippet of code. changing === 'true' to what is shown below

    auth.setUserAuthedState(userIsAuthed, () => {
      if (authMall.isUserNew() == true) {
        history.replace('/onboard');
      } else {
        history.replace('/dashboard');
      }
    });