Skip to content

Commit

Permalink
Remove hardcoded channels from checkout (saleor#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Magdalena Markusik authored Nov 9, 2022
1 parent fdc8d7b commit 889da33
Show file tree
Hide file tree
Showing 44 changed files with 1,269 additions and 312 deletions.
4 changes: 2 additions & 2 deletions apps/storefront/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export function Navbar() {
const [isBurgerOpen, setBurgerOpen] = useState(false);
const { authenticated } = useAuthState();
const { checkout } = useCheckout();
const { currentLocale } = useRegions();
const { currentChannel, currentLocale } = useRegions();

const externalCheckoutUrl = checkout
? `/checkout/?checkout=${checkout.id}&locale=${currentLocale}`
? `/checkout/?checkout=${checkout.id}&locale=${currentLocale}&channel=${currentChannel.slug}`
: "#";

useEffect(() => {
Expand Down
Loading

0 comments on commit 889da33

Please sign in to comment.