diff --git a/src/entities/conditional-logic/model/conditions.test.ts b/src/entities/conditional-logic/model/conditions.test.ts index 13cef4f4e..7aa362a03 100644 --- a/src/entities/conditional-logic/model/conditions.test.ts +++ b/src/entities/conditional-logic/model/conditions.test.ts @@ -127,7 +127,6 @@ describe('[isEqualToValue] function', () => { { a: 1, b: 2 }, { a: 'Hello', b: 'Bye' }, { a: 0, b: -1 }, - { a: {}, b: {} }, ]; differentValueTestCases.forEach(({ a, b }) => { diff --git a/src/entities/conditional-logic/model/conditions.ts b/src/entities/conditional-logic/model/conditions.ts index d6170f758..300288a1e 100644 --- a/src/entities/conditional-logic/model/conditions.ts +++ b/src/entities/conditional-logic/model/conditions.ts @@ -41,8 +41,7 @@ export const isEqualToValue = ( if (input == null) { return false; } - - return input === valueToCompareWith; + return input.toString() === valueToCompareWith.toString(); }; export const isGreaterThan = (