Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: shop selector blank on page load #328

Conversation

loan-laux
Copy link
Contributor

Signed-off-by: Loan Laux [email protected]

Impact: minor
Type: bugfix

Issue

The shop selector shows no selected shop on the first page load, even if one is in fact selected or the user is viewing the /new-shop page.

Solution

Use useCurrentShopId hook inside the ShopSelectorWithData component instead of passing the shopId as a prop.

Breaking changes

None.

Testing

  1. Load any shop-specific page, check that the shop name is showing up as selected in the top-left corner.
  2. Load the /new-shop page, check that "New Shop" is showing up as selected in the top-left corner.

@rosshadden rosshadden merged commit 13c29b6 into reactioncommerce:trunk Oct 5, 2020
@mikemurray mikemurray mentioned this pull request Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants