null meant unlimited, so for a while our free trial could build more question packs than Pro
Here is a bug that passes review, passes types, and reads correctly in both of the places it is wrong. trial: { // ... maxCustomPacks: null, // no custom packs on the trial }, pro: { // ... maxCustomPacks: 5, }, The interface says what null means, two lines above: /** Max custom question packs. null = unlimited */ maxCustomPacks: number | null So the trial had unlimited custom question packs and Pro, which people pay £30 a month for, had five.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in