Skip to content

Commit 434cdb9

Browse files
committed
fix: guard max_per_transaction_cents undefined check in financial_governance validation
1 parent 8174af8 commit 434cdb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function validateCompliance(dir: string): ValidationResult {
374374
const fg = c.financial_governance;
375375
if (fg) {
376376
if (fg.enabled && fg.spending) {
377-
if (fg.spending.max_per_transaction_cents <= 0) {
377+
if (fg.spending.max_per_transaction_cents !== undefined && fg.spending.max_per_transaction_cents <= 0) {
378378
result.valid = false;
379379
result.errors.push(
380380
'[financial_governance] spending.max_per_transaction_cents must be a positive integer'

0 commit comments

Comments
 (0)