diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c06b43..0db9ed5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,12 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] + +### Fixed + +- Selected pickup doesn't work on first load + ## [0.4.1] - 2024-11-01 ### Fixed - Drawer opens behind the sidebar + ## [0.4.0] - 2024-10-04 ### Fixed diff --git a/react/hooks/useShippingOptions.ts b/react/hooks/useShippingOptions.ts index afc17b6..88dbadb 100644 --- a/react/hooks/useShippingOptions.ts +++ b/react/hooks/useShippingOptions.ts @@ -139,8 +139,9 @@ const useShippingOptions = () => { await updateSession(inputZipCode, coordinates) + await fetchPickups(countryCode, inputZipCode, coordinates) + if (!reload) { - await fetchPickups(countryCode, inputZipCode, coordinates) setIsLoading(false) }