mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-07 02:51:06 -04:00
The radio buttons to select the type of service - central, etc. - are only shown if we can't infer the type based on the user's email / default organisation. However, the code to render the page in the error case didn't accommodate this, nor did it show the version of the page for adding a local government service. This fixes the bug by DRYing-up the logic to render the pages. I've not added a test for this for a couple of reasons: - It's not a critical bug: no one has complained about it and it doesn't block the user from adding service. - It's unlikely to reoccur because the bug involved writing _more_ code than was necessary. - It's not trivial to test this due to the 3 versions of the page involved - these are tested for the happy path.