diff --git a/app/Domains/Catalog/Services/VariantSelectionService.php b/app/Domains/Catalog/Services/VariantSelectionService.php index c2f22c6..7f6e0fd 100644 --- a/app/Domains/Catalog/Services/VariantSelectionService.php +++ b/app/Domains/Catalog/Services/VariantSelectionService.php @@ -52,7 +52,7 @@ class VariantSelectionService $attributeKeys, $matchingVariants->isEmpty() ? [] : $normalizedSelections, ), - 'selected_values' => $matchingVariants->isEmpty() ? [] : $normalizedSelections, + 'selected_values' => (object) ($matchingVariants->isEmpty() ? [] : $normalizedSelections), 'resolved_variant' => $resolvedVariant === null ? null : $this->variantData($catalogItem, $resolvedVariant),