mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
refactor: rename variables and create hooks
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
@@ -82,11 +82,11 @@ const constructFilterInput = (filters: {
|
||||
}
|
||||
if (filters[`${PRICE_FILTER_ID}.max`]) {
|
||||
price.max = Number(filters[`${PRICE_FILTER_ID}.max`]);
|
||||
!price.min && (price.min = 0);
|
||||
}
|
||||
if (price.max && !price.min) {
|
||||
price.min = 0;
|
||||
if (price.max || price.min) {
|
||||
results.push({ price });
|
||||
}
|
||||
results.push({ price });
|
||||
return results;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user