Skip to content
Snippets Groups Projects

Finalisation du panier

Merged Princelle Maxime requested to merge develop into main
Viewing commit 08b165dc
Show latest version
1 file
+ 1
1
Preferences
Compare changes
+ 1
1
@@ -10,7 +10,7 @@ function RequireAuth({ children }: { children: JSX.Element }) {
let auth = useAuth();
let location = useLocation();
if (read_cookie('user') == false && !auth.user) {
if (read_cookie('user').length === 0 && !auth.user) {
// Redirect them to the /login page, but save the current location they were
// trying to go to when they were redirected. This allows us to send them
// along to that page after they login, which is a nicer user experience