This PR resolves a regression caused from PR #44 that causes the looping feature to break, throwing a Please enter a postal code error.
Description of fix
Config values were being set on each start, however the form isn't filled in on a loop refresh and "wipes" any previous values. Furthermore, the new validation assumes that values are from the form, not from localStorage. Checks are added if the application is in a loop state (from localStorage).
This PR implements logic to handle loops for config validation & setting to localStorage.
How to test
Open in a new session (no previous key/vals in localStorage).
Input a zip code and press Start.
Enable loop.
Upon loop restart, it should no longer throw an error; emulator should replay.
This PR resolves a regression caused from PR #44 that causes the looping feature to break, throwing a
Please enter a postal code
error.Description of fix Config values were being set on each start, however the form isn't filled in on a loop refresh and "wipes" any previous values. Furthermore, the new validation assumes that values are from the form, not from localStorage. Checks are added if the application is in a loop state (from localStorage).
This PR implements logic to handle loops for config validation & setting to localStorage.
How to test