vendure-ecommerce / storefront-qwik-starter

An e-commerce storefront starter built with Qwik and Vendure
https://qwik-storefront.vendure.io
227 stars 86 forks source link

fix: resolve issue of accessing undefined in routes/layouts.tsx #142

Closed anthonygregis closed 11 months ago

anthonygregis commented 11 months ago

This resolves the issue mentioned in Issue #141 when trying to access availableCountriesSignal first index when a storefront has no available countries. It adds a simple length check to ensure that we are not trying to access an empty array.