Hello, I have written this code, but there is something not correct with the brackets. Please can you correct it? Thanks In Advance!
Here is the code`
import wixUsers from 'wix-users';
$w.onReady(function () {
var roleName;
let currentUser = wixUsers.currentUser;
currentUser.getRoles()
.then( (roles) => {
var firstRole = roles[0];
roleName = firstRole.name;
if(roleName === "Teacher"){
$w('#teacher').show();
}