opengovsg / checkfirst

Don't Know? CheckFirst. A tool to build eligibility checkers and calculators for Singapore Government policies
https://checkfirst.gov.sg
Other
11 stars 6 forks source link

fix: store constant values as Number #1314

Closed KoalaTasha closed 2 years ago

KoalaTasha commented 2 years ago

Problem

CheckFirst is saving constant values as string instead of Number, and that's hurting functionality, since constants are meant to be numbers. This will affect logic applied to the values

Solution

Bug Fixes:

Ensure that the MapTable component returns a number for the mapped value on the frontend