Code Error

Hi.

I was wondering if anyone could help with some code.

This is the code

import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;
$w.onReady( function () {
//Get current user email address
return wixUsers.currentUser.getEmail()
.then((email) => {
let userEmail = email; //" user@something.com "
console.log(email)
//Filter the dataset
$w(“#dataset1”).setFilter(wixData.filter()
.eq(“customerEmail”, email))
})
});
let debounceTimer;
export function iTitle1_keyPress(event, $w) {
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout(() => {
filter($w(‘#iTitle1’).value);
}, 200);
}
let lastFilterTitle;
function filter(title) {
if (lastFilterTitle !== title) {
$w(‘#dataset1’).setFilter(wixData.filter().contains(‘serialNumber’, title));
lastFilterTitle = title;
}
}

But I am getting this error when I use the search function and it shows all results rather then just results with that users email