FIX: Stop wizard from creating duplicate Light theme (PR #9464)

Before this change, after going through the wizard and selecting ‘Light’ theme, there would be 2 Light themes, because the wizard step created a duplicate.

Here, I added logic to check if the color scheme of the selected theme is “Light”. If so, add the default like theme (The theme with color_scheme_id == nil') to the themes array.

We do not have tests that test the outcome of submitting this step, but I extensively tested it in the browser to ensure it works.

GitHub

The title of this pull request changed from “FIX: Wizard was creating duplicate Light theme if Light was selected” to "FIX: Stop wizard from creating duplicate Light theme