fix typo on sale flag

This commit is contained in:
Raja Sekar Manimaran 2024-09-18 19:19:05 +05:30
parent 2d6c1824cc
commit a6bb6f0947
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};

View File

@ -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,