fix: typo
This commit is contained in:
parent
a508347fb1
commit
8431f5c9f8
|
@ -298,13 +298,13 @@ export class AccountApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async updatePassword(
|
public async updatePassword(
|
||||||
currentPasswprd: string,
|
currentPassword: string,
|
||||||
newPassword: string,
|
newPassword: string,
|
||||||
): Promise<boolean | AccountError> {
|
): Promise<boolean | AccountError> {
|
||||||
let ret: AxiosResponse<void>;
|
let ret: AxiosResponse<void>;
|
||||||
try {
|
try {
|
||||||
ret = await postApiAccountUpdatePassword(
|
ret = await postApiAccountUpdatePassword(
|
||||||
{ current_password: currentPasswprd, new_password: newPassword },
|
{ current_password: currentPassword, new_password: newPassword },
|
||||||
this.buildOptions(),
|
this.buildOptions(),
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue