We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79119e commit d89671cCopy full SHA for d89671c
1 file changed
src/interpreter/policy/is-trap-condition-met.ts
@@ -58,7 +58,7 @@ function handleTrapCondition<T extends object, ConditionType>(
58
// If matching the condition depends on the provided arguments, pass them in
59
if (isTrapConditionFunction(trapCondition)) {
60
const castItem = item as IPolicyProxyApplyHookOptions<T> | IPolicyProxyConstructHookOptions<T>;
61
- return trapCondition(...castItem.argArray) === matchCondition;
+ return castItem.argArray != null && trapCondition(...castItem.argArray) === matchCondition;
62
}
63
64
// Otherwise, evaluate the truthiness of the condition
0 commit comments