diff --git a/src/Models/Response/TransactionResponse.ts b/src/Models/Response/TransactionResponse.ts index 8dca5fab..090f867f 100644 --- a/src/Models/Response/TransactionResponse.ts +++ b/src/Models/Response/TransactionResponse.ts @@ -105,11 +105,11 @@ export class TransactionResponse extends HttpClientResponse { return ( this.data.requestErrors && Object.keys(this.data.requestErrors).length > 0 && - (this.data.requestErrors.channelErrors.length > 0 || - this.data.requestErrors.serviceErrors.length > 0 || - this.data.requestErrors.actionErrors.length > 0 || - this.data.requestErrors.parameterErrors.length > 0 || - this.data.requestErrors.customParameterErrors.length > 0) + ((this.data.requestErrors.channelErrors?.length ?? 0) > 0 || + (this.data.requestErrors.serviceErrors?.length ?? 0) > 0 || + (this.data.requestErrors.actionErrors?.length ?? 0) > 0 || + (this.data.requestErrors.parameterErrors?.length ?? 0) > 0 || + (this.data.requestErrors.customParameterErrors?.length ?? 0) > 0) ); }