Laura10101 / contractor-tax-calculator

0 stars 2 forks source link

Tax calculator allows for the creation of calculations if there are no questions configured for the selected jurisdictions #239

Closed Laura10101 closed 9 months ago

Laura10101 commented 9 months ago

Steps to reproduce

  1. Delete all questions from the database
  2. Create a tax calculation

Expected result The jurisdiction form should not allow the form to be submitted if there are no things.

Actual result The form can be submitted with no questions. and no data. An empty calculation result page is then displayed. When the calculation is displayed on the dashboard, an error is shown.

Laura10101 commented 9 months ago

Added code to count the number of questions available to the form as a whole and display a message if no questions are available.