Fixed Password matching msg showing when confirm is empty (#1400)

* Fixed Password matching msg showing when confirm is empty

* ran lint and == → ===
This commit is contained in:
Jakob
2023-12-21 20:09:48 -05:00
committed by GitHub
parent d6ba3f3adf
commit 5f075e4936

View File

@@ -44,7 +44,10 @@
} password`"
>
<div class="universal-modal">
<ul v-if="newPassword !== confirmNewPassword" class="known-errors">
<ul
v-if="newPassword !== confirmNewPassword && confirmNewPassword.length > 0"
class="known-errors"
>
<li>Input passwords do not match!</li>
</ul>
<label v-if="removePasswordMode" for="old-password">
@@ -116,8 +119,8 @@
type="button"
class="iconified-button brand-button"
:disabled="
newPassword.length == 0 ||
oldPassword.length == 0 ||
newPassword.length === 0 ||
oldPassword.length === 0 ||
newPassword !== confirmNewPassword
"
@click="savePassword"