fix: code styles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user