From 43bb0cf7068fe41558c9c6028ea3144ccd898a1f Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Wed, 15 Nov 2023 09:39:46 +0100 Subject: [PATCH] quick fix --- src/Models/Response/TransactionResponse.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) ); }