Neuro Feature Atlas

Home

❯

Findings

❯

R10 · Activity amount validation throws without a base rule

R10 · Activity amount validation throws without a base rule

  • finding
  • risk/medium
  • category/bug

R10 · 🟠 Medium · bug

Activity amount validation throws without a base rule

What the code does

The amount rule reads generalRule.lastObject.amount unguarded.

Where

app/models/campaign.js

Suggested fix

Suggestion

Treat a missing base rule as invalid instead of throwing.

Affected features

  • Activity editor (loyalty mechanics, rules & targeting) — Marketing

Graph View

  • What the code does
  • Where
  • Suggested fix
  • Affected features

Backlinks

  • Marketing
  • Activity editor (loyalty mechanics, rules & targeting)
  • Risk Register

Created with Quartz v4.5.2 © 2026

  • Source repository
  • Raw database