amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

Clearing local storage flags on logOut #153

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

                        newModel =
                            if justLoggedOut then
                                defaultModel
                            else
                                { model
                                    | profilePage = newProfileModel
                                    , shared = newShared
                                }```

This removes the flags and fucks the user when they try and log back in later because the flags specify the URL of the api.