diff --git a/packages/rocketchat-ui/client/views/app/secretURL.js b/packages/rocketchat-ui/client/views/app/secretURL.js index 84d689d8caec..d17c786daf15 100644 --- a/packages/rocketchat-ui/client/views/app/secretURL.js +++ b/packages/rocketchat-ui/client/views/app/secretURL.js @@ -5,8 +5,8 @@ Template.secretURL.helpers({ return RocketChat.settings.get('Accounts_RegistrationForm') === 'Secret URL' && hashIsValid && hashIsValid.get(); }, ready() { - const {subscriptionsReady, hashReady} = Template.instance(); - return typeof subscriptionsReady === 'function' && subscriptionsReady() && hashReady && hashReady.get(); + const instance = Template.instance(); + return typeof instance.subscriptionsReady === 'function' && instance.subscriptionsReady() && instance.hashReady && instance.hashReady.get(); } });