diff --git a/src/account.ts b/src/account.ts index 4f13659..28db13c 100644 --- a/src/account.ts +++ b/src/account.ts @@ -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);