Skip to content

Commit

Permalink
fix: allow server rendering the security page again
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Nov 24, 2024
1 parent ae36f75 commit 3906ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/auth/settings/security.vue
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function closeUnlinkModal() {
<InputText
v-model="newAuthenticatorName"
:label="t('auth.settings.security.securityKeys.keyName')"
:rules="[requiredIf()(() => authenticatorRenameModal!.isOpen)]"
:rules="[requiredIf()(() => authenticatorRenameModal?.isOpen || false)]"
/>
<Button class="mt-2" size="small" :disabled="loading" @click.prevent="renameAuthenticator">
{{ t("auth.settings.security.securityKeys.rename") }}
Expand Down Expand Up @@ -378,7 +378,7 @@ function closeUnlinkModal() {
<InputText
v-model="backupCodeConfirm"
:label="t('auth.settings.security.backupCodes.modal.backupCode')"
:rules="[requiredIf()(backupCodeModal!.isOpen)]"
:rules="[requiredIf()(backupCodeModal?.isOpen || false)]"
/>
<Button class="mt-2" :disabled="v.$invalid" @click="confirmAndRepeat">{{ t("general.confirm") }}</Button>
</Modal>
Expand Down

0 comments on commit 3906ae8

Please sign in to comment.