Hey there, I’d like your opinion on this issue, basically whatever i puth in then() is just ignored
$item("#bookButton").onClick(event => {
$item("#bookButton").disable();
$item("#bookButton").label = "a moment...";
if (!isLoggedIn) {
wixUsers.promptLogin().then(() => {
console.log('then reloading');
wixLocation.to(wixLocation.url);
});
} else {
bookButtonClick(itemData, distance)
}
});
I don’t see the message in console
here’s the page https://www.ottostudio.it/allenati
my issue or wix’s issue?