cityssm / general-licence-manager

Exhaustiveness checking in switch with union type JS-0383
Anti-pattern
Minor
a month ago3 months old
Switch is not exhaustive. Cases not matched: "flat"
14  let additionalFeeAmount =
15    licenceCategoryAdditionalFee.additionalFeeNumber ?? 0
16
17  switch (licenceCategoryAdditionalFee.additionalFeeType) {18    case 'percent': {
19      additionalFeeAmount = baseLicenceFeeFloat * (additionalFeeAmount / 100)
20      break