Skip to content

Commit

Permalink
chore: better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rylanharper committed Nov 26, 2024
1 parent 3f6de29 commit 7c274f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/cart/cart-line.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const cartStore = useCartStore();
const merchandise = computed(() => props.line.merchandise);
const variantId = computed(() => formatVariantId(props.line.merchandise.id));
// Filter default option name/value
// Filter out default names/values from selected options
const selectedOptions = computed(() => {
return merchandise.value.selectedOptions.filter(
(option) => option.name !== 'Title' && option.value !== 'Default Title'
Expand Down
2 changes: 1 addition & 1 deletion app/components/product/media/product-media-carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const isMediaImage = (media: any): media is MediaImageFragment => {
return media?.mediaContentType === 'IMAGE';
};
// Embla carousel setup
// Embla setup
const [emblaRef, emblaApi] = emblaCarouselVue({ loop: true });
// State
Expand Down
2 changes: 1 addition & 1 deletion app/pages/collections/[handle].vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const collection = computed(() => collectionData?.value);
const filterProducts = computed(() => flattenConnection(filterData.value?.products) as ProductFragment[]);
const products = computed(() => flattenConnection(collection.value?.products) as ProductFragment[]);
// Check for products
// Check for more products
const hasMoreProducts = computed(() =>
collection.value?.products?.pageInfo?.hasNextPage || false
);
Expand Down
2 changes: 1 addition & 1 deletion app/pages/products/[handle].vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const product = computed(() => productData.value);
const productMedia = computed(() => flattenConnection(product.value?.media));
const productRecommendations = computed(() => recommendationData.value?.slice(0, 4) || []);
// Matching color references (if any)
// Check for matching color references
const matchingColors = computed(() => {
const references = product.value?.matching_colors?.references;
return references ? flattenConnection(references) as ProductFragment[] : [];
Expand Down
2 changes: 1 addition & 1 deletion app/pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const search = computed(() => searchData?.value);
const filterProducts = computed(() => flattenConnection(filterData.value) as ProductFragment[]);
const products = computed(() => flattenConnection(search.value) as ProductFragment[]);
// Check for products
// Check for more products
const hasMoreProducts = computed(() =>
search.value?.pageInfo?.hasNextPage || false
);
Expand Down

0 comments on commit 7c274f9

Please sign in to comment.