Can't check if a user is in a pricing plan

Hi,
I’m trying to check if the current user is a paying member or not.

here is my code -

import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;

$w . onReady ( function () {

console . log ( "Ready" ) 

**let**  user  =  wixUsers.currentUser 

user . getPricingPlans ()  
. then  (( pricingPlans ) => { 
    **if**  ( pricingPlans.length  >  0 ){ 
        console . log ( "Hi" ) 
    } 
}); 

// --------------------------------------------

**if** ( wixUsers.currentUser.loggedIn ) { 
    wixUsers.currentUser . getPricingPlans () 
    . then (( pricingPlans ) => { 
        **if** ( pricingPlans.length > 0 ){ 
            console . log ( "Hi" ) 
        } 
    }) 
} 

});

this is my results -

I have no idea what e.text means. it’s not in my code (not in the master.js as well)

I’ve tried a couple of ways with no luck.

Please help me :weary:

Do you have any other code on this page or on the global masterPage.js ?