Skip to content

Commit

Permalink
feat(Violations): add quotes
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Alvarez <[email protected]>
  • Loading branch information
trevor-coleman and cead22 authored Nov 30, 2023
1 parent 2b27509 commit 47afbe9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/Violations/ViolationsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ const ViolationsUtils = {
newTransactionViolations = reject(newTransactionViolations, {name: 'missingCategory'});
}

// Add missingCategory violation if category is required and not set

// Add 'missingCategory' violation if category is required and not set
if (!hasMissingCategoryViolation && policyRequiresCategories && !transaction.category) {
newTransactionViolations.push({name: 'missingCategory', type: 'violation', userMessage: ''});
}
Expand Down

0 comments on commit 47afbe9

Please sign in to comment.