diff --git a/frontend/src/layout/AppTopbar.vue b/frontend/src/layout/AppTopbar.vue
index 61d22ec..154c613 100644
--- a/frontend/src/layout/AppTopbar.vue
+++ b/frontend/src/layout/AppTopbar.vue
@@ -76,7 +76,12 @@ async function savePassword(pass) {
}
catch (error) {
- console.error(error);
+ if (error.response.status === 400) {
+ toast.add({ severity: 'error', summary: 'Error', detail: 'Current password is incorrect', life: 3000 });
+ }
+ else {
+ console.log(error);
+ }
}
}
@@ -139,8 +144,8 @@ const isOutsideClicked = (event) => {
-