How Do I hide "Update Profile Button" from other users when they browse different profiles?

Hello! I absolutely ADORE the team members here who are willing to help out others. It’s because of you all, I’ve created my very own profile page using the directions here;
https://www.vorbly.com/Vorbly-Code/WIX-CODE-CREATE-MEMBERS-ONLY-PAGES


In order to make this button invisible to none-members; I’ve added code to make it hide during non-member visitations;

import wixUsers from ‘wix-users’ ;

$w . onReady ( () => {
if ( wixUsers . currentUser . loggedIn ) {
$w ( ‘#Update’ ). show ();
}
else {
$w ( ‘#Update’ ). hide ();
}
});

I tam making a page where it has my members where other members (and non-members) can browse through the repeater and select the profile they want to see and my question is to you wonderful people, is how to get the update profile button to hide from other members EXCEPT the user?

Thank you so much!