This is my code below, but this only happens when the sign up button is clicked and does not go to the required page, also the login button can not even be accessed. Please I need help, Thanks.
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
import wixWindow from ‘wix-window’ ;
import wixData from ‘wix-data’ ;
let user = wixUsers.currentUser;
let userId = user.id;
$w.onReady( function () {
});
export function signup_click(event) {
if (wixUsers.currentUser.loggedIn) {
wixLocation.to( "https://xxxxx" );
}
}