diff options
Diffstat (limited to 'client/components/settings')
-rw-r--r-- | client/components/settings/invitationCode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/settings/invitationCode.js b/client/components/settings/invitationCode.js index e712c89a..a403d8ab 100644 --- a/client/components/settings/invitationCode.js +++ b/client/components/settings/invitationCode.js @@ -1,6 +1,6 @@ Template.invitationCode.onRendered(() => { - const disableRegistration = Settings.findOne().disableRegistration; - if(!disableRegistration){ + const setting = Settings.findOne(); + if (!setting || !setting.disableRegistration) { $('#invitationcode').hide(); } }); |