diff --git a/frontend/src/layout/AppTopbar.vue b/frontend/src/layout/AppTopbar.vue
index 48ec746..61d22ec 100644
--- a/frontend/src/layout/AppTopbar.vue
+++ b/frontend/src/layout/AppTopbar.vue
@@ -8,7 +8,6 @@ import jwt_decode from 'jwt-decode';
import auth from '../utils/Auth';
const { onMenuToggle } = useLayout();
-
const outsideClickListener = ref(null);
const topbarMenuActive = ref(false);
const changePasswordDialog = ref(false);
@@ -58,8 +57,7 @@ const onClickPasswordChange = () => {
password: user.value.current_password,
new_password: user.value.new_password
};
- if (user.value.new_password != user.value.confirm_new_password) {
- console.log("gola");
+ if (user.value.new_password !== user.value.confirm_new_password) {
toast.add({ severity: 'error', summary: 'Error', detail: 'Passwords are not the same', life: 3000 });
return;
}
@@ -67,6 +65,7 @@ const onClickPasswordChange = () => {
}
async function savePassword(pass) {
+ submitted.value = true;
var token = localStorage.getItem("token");
var decoded = jwt_decode(token);
try {
@@ -145,21 +144,23 @@ const isOutsideClicked = (event) => {