fix: code styles

This commit is contained in:
Koosha Lahouti
2025-08-13 11:18:12 +03:30
parent cd4113b75a
commit d42913bced
10 changed files with 51 additions and 25 deletions

View File

@@ -69,7 +69,7 @@ export function PasswordSecurity() {
}
: {
password,
confirmPassword,
// confirmPassword,
};
const res = await apiClient.post(url, payload, {
@@ -88,11 +88,9 @@ export function PasswordSecurity() {
setCurrentPassword('');
} else {
console.error('Password update failed:', res.data?.message);
// optionally show error toast
}
} catch (err) {
console.error('Error updating password:', err);
// optionally show error toast
} finally {
setLoading(false);
}
@@ -110,6 +108,7 @@ export function PasswordSecurity() {
sx={{
backgroundColor: 'primary.main',
color: 'background.paper',
textTransform: 'none',
}}
>
{changePassword