fix typo on sale flag
This commit is contained in:
parent
2d6c1824cc
commit
a6bb6f0947
|
@ -27,7 +27,7 @@ export type SearchAPIProductType = {
|
|||
billing_period: string;
|
||||
billing_period_interval: number;
|
||||
currency: string;
|
||||
is_on_Sale: boolean;
|
||||
is_on_sale: boolean;
|
||||
regular_price: number;
|
||||
};
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ async function fetchSearchResults(
|
|||
// Due to backwards compatibility, raw_price is from search API, price is from featured API
|
||||
price: product.raw_price ?? product.price,
|
||||
regularPrice: product.regular_price,
|
||||
isOnSale: product.is_on_Sale,
|
||||
isOnSale: product.is_on_sale,
|
||||
averageRating: product.rating ?? null,
|
||||
reviewsCount: product.reviews_count ?? null,
|
||||
isInstallable: product.is_installable,
|
||||
|
|
Loading…
Reference in New Issue