fix: add ?.
This commit is contained in:
parent
788e424841
commit
ef3d0d3fbc
|
@ -241,7 +241,7 @@ export class AccountApi {
|
|||
this.buildOptions(),
|
||||
);
|
||||
} catch (e) {
|
||||
return new Error((e as AxiosError).response.data as string);
|
||||
return new Error((e as AxiosError).response?.data as string);
|
||||
}
|
||||
|
||||
return this.checkSuccessBool(ret);
|
||||
|
|
Loading…
Reference in New Issue