bcgov / cas-ciip-portal

The Climate Action Secretariat's CleanBC Industrial Incentive Program application
https://ciip.gov.bc.ca/
Apache License 2.0
10 stars 2 forks source link

Empty string can end up in the Fuels json quantity field #2235

Closed pbastia closed 1 year ago

pbastia commented 1 year ago

Describe the Bug:

If a reporter, on their application:

then this JSON ends up in the form data:

  {
    "quantity": "",
    "fuelRowId": 13,
    "fuelUnits": "t",
    "emissionCategoryRowId": 1
  }

which causes the validation functions and the CIIP Fuel view to misbehave, and prevents access to the application for the user to fix the issue.

Probability (1-5): 3

Effect (1-5): 5

Steps to reproduce the behaviour:

Screenshots:

Additional information: