Describe the bug
Badge for hull size criteria on search results page ("search/execute" route) defaults to "Cruiser" no matter what is picked, however the condition for the query is what is selected, so the results still match.
The encapsulating if statement already checks if the field was filled, so the condition for this ternary operator will always resolve to true and choose "Cruiser" for this SearchCriteria's name. However, the actual selected value is set as its value, so we end up seeing frigate results with the "CRUISER SIZE SHIPS" badge.
Describe the bug Badge for hull size criteria on search results page ("search/execute" route) defaults to "Cruiser" no matter what is picked, however the condition for the query is what is selected, so the results still match.
To Reproduce Steps to reproduce the behavior:
Expected behavior On step 4 of the reproduction steps, the badge should show the appropriate hull size you chose on the previous page from step 1.
Screenshots
Desktop (please complete the following information):
Additional context I believe the issue is this line: https://github.com/molbal/abyss-tracker/blob/146891da9106b34595fee517283f59b2e7251c81/app/Http/Controllers/SearchController.php#L83
The encapsulating if statement already checks if the field was filled, so the condition for this ternary operator will always resolve to true and choose "Cruiser" for this SearchCriteria's name. However, the actual selected value is set as its value, so we end up seeing frigate results with the "CRUISER SIZE SHIPS" badge.