Please I used this code, check see, is it valid and if not, what would you suggest I do.
On this page I display requests made by users, and experts open and respond to their requests, it wouldn’t be professional if the user opens it and also is allowed to respond to his ownself.
This is my code:
import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w.onReady( () => {
if (wixUsers.currentUser.owner) {
$w(‘#propose’).show();
}
else {
$w(‘#propose’).hide();
}
} );