.then() function doesn't work on mobile

I have a function which looks like this:
export function button1_click(event) {
//Add your code for this event here:
toSave2 = {
“title”: a,
“b”: b,
“c”: c,
“d”: d,
“e”: e
};
wixData.save(“Database”, toSave2)
.then( (results) => {
DBitem.ReferenceId = results._id;
wixData.update(“Database2”, DBitem)
.then( () => {
console.log(“UPDATED!”);
$w(“#text33”).text = “UPDATED!”;
wixLocation.to(“/thank-you”);
})
.catch( (err) => {
console.log(err);
});
})
.catch( (err) => {
console.log(err);
});
});
}

I’m trying to redirect to a “thank you” page after the database-item was updated. Unfortunately, It works only when running the website on a desktop. IT DOES NOT WORK ON MOBILE.
Anyone known what might be the issue? PLEASE HELP!
Thank you very much!