From ef3d0d3fbc17408e9e6aa157464b85e2da54dbd0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 08:00:22 -0400 Subject: [PATCH] fix: add ?. --- src/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);