R10 · 🟠 Medium · bug
Activity amount validation throws without a base rule
What the code does
The amount rule reads generalRule.lastObject.amount unguarded.
Where
Suggested fix
Suggestion
Treat a missing base rule as invalid instead of throwing.
R10 · 🟠 Medium · bug
Activity amount validation throws without a base rule
The amount rule reads generalRule.lastObject.amount unguarded.
Suggestion
Treat a missing base rule as invalid instead of throwing.