Brackets problem?

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();
     }

Hi,

Few closing brackets are missing,

 $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();
     }// end of if statement was missing
  }); // end of .then was missing
});// End of onReady 

hope this helps!
Best,

Mustafa

Dera Mustafa Thank You Very Very Much!!