@gem-sdk/core 1.23.9 → 1.23.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -141,8 +141,7 @@ const useCurrentVariant = ()=>{
|
|
|
141
141
|
};
|
|
142
142
|
const useCurrentVariantInStock = ()=>{
|
|
143
143
|
const currentVariant = useCurrentVariant();
|
|
144
|
-
|
|
145
|
-
return isInStock;
|
|
144
|
+
return variant.checkInStock(currentVariant);
|
|
146
145
|
};
|
|
147
146
|
const useVariantOutStock = (optionId, optionValue)=>{
|
|
148
147
|
const { selectedOptions } = useSelectedOption();
|
|
@@ -139,8 +139,7 @@ const useCurrentVariant = ()=>{
|
|
|
139
139
|
};
|
|
140
140
|
const useCurrentVariantInStock = ()=>{
|
|
141
141
|
const currentVariant = useCurrentVariant();
|
|
142
|
-
|
|
143
|
-
return isInStock;
|
|
142
|
+
return checkInStock(currentVariant);
|
|
144
143
|
};
|
|
145
144
|
const useVariantOutStock = (optionId, optionValue)=>{
|
|
146
145
|
const { selectedOptions } = useSelectedOption();
|