Skip to content

Commit a18bf88

Browse files
MOL-736 (#158)
- update condition check
1 parent 930af29 commit a18bf88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

processor/src/commercetools/customFields.commercetools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ export async function createCustomPaymentInterfaceInteractionType(): Promise<voi
239239

240240
export async function createCustomTransactionType(): Promise<void> {
241241
const transactionCustomTypeKey =
242-
readConfiguration().commerceTools.transactionCustomTypeKey !== ''
242+
readConfiguration().commerceTools.transactionCustomTypeKey &&
243+
readConfiguration().commerceTools.transactionCustomTypeKey.length > 0
243244
? readConfiguration().commerceTools.transactionCustomTypeKey
244245
: CustomFields.transactions.defaultCustomTypeKey;
245246

0 commit comments

Comments
 (0)