Upon clicking the browser's back button, the theme toggler icon reverts to its initial state, rather than adjusting based on the theme as intended.
Expected result
The icon ought to be configured in accordance with the chosen theme.
Reproduction
After enabling dark mode on the website, navigating back to the home page of the code generator and then revisiting the "Get started" page results in the icon being altered, contrary to its intended behavior.
Steps to reproduce
Navigate to the code generator page and click "Get Started."
Switch the theme to dark mode and use the back button to return to the main webpage.
Upon re-entering the "Get Started" page, the icon will reset, functioning contrary to the intended behavior.
Describe the bug
Upon clicking the browser's back button, the theme toggler icon reverts to its initial state, rather than adjusting based on the theme as intended.
Expected result
The icon ought to be configured in accordance with the chosen theme.
Reproduction
After enabling dark mode on the website, navigating back to the home page of the code generator and then revisiting the "Get started" page results in the icon being altered, contrary to its intended behavior.
Steps to reproduce