fix: add ?.

This commit is contained in:
Derrick Hammer 2024-03-19 08:00:22 -04:00
parent 788e424841
commit ef3d0d3fbc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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);