Skip to content

Commit

Permalink
Merge pull request #7321 from RocketChat/fix-secret-url
Browse files Browse the repository at this point in the history
[FIX] Fix Secret Url
  • Loading branch information
rodrigok committed Jun 23, 2017
1 parent 8ea4a8b commit f1e9f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-ui/client/views/app/secretURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand Down

0 comments on commit f1e9f70

Please sign in to comment.