Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Nov 20, 2024
1 parent eeaf6ec commit 47b3b38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/loot-core/src/shared/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export const FIELD_TYPES = new Map<keyof FieldValueTypes, string>(

export function isValidOp(field: keyof FieldValueTypes, op: RuleConditionOp) {
const type = FIELD_TYPES.get(field);
if (!type) {
return false;
}

if (!type) return false;
if (fieldInfo[field].disallowedOps?.has(op)) return false;

return (
(TYPE_INFO[type].ops.includes(op) ||
fieldInfo[field].internalOps?.has(op)) &&
!fieldInfo[field].disallowedOps?.has(op)
TYPE_INFO[type].ops.includes(op) ||

Check warning on line 99 in packages/loot-core/src/shared/rules.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎·····`
fieldInfo[field].internalOps?.has(op)
);
}

Expand Down

0 comments on commit 47b3b38

Please sign in to comment.