Closed lmjcbs closed 3 years ago
I've added the switch statement changes, I managed to get that working on my end. There's also a remaining edge case I can't seem to figure out.
If you enter a valid postcode, the results info displays the postcode. If the user removes a character, invalidating the postcode, the postcode reverts to null, which is displayed in the results info until the user removes the invalidated postcode all together.
awesome, I think that's much better 👏
I'm not sure it's possible to have all of the detailed messages, I found that adding more detailed results for
across the country
closest to ${selectedLocation}
closest to ${selectedPostcode}
Meant that one of these conditions would always be met, invalidating
closest to you
I believe it's down to preference which one you want to overwrite the others with. I've opted to omit the Geo case.
Let me know your thoughts.