Skip to content

Commit a2ca9bc

Browse files
remove extra field
1 parent 9779944 commit a2ca9bc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/hooks/api/useFetchProductData.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ProductType } from "@/utils/type";
77
const fetchProductData = async ({
88
productId,
99
selectedOption = [],
10-
locale = "en",
1110
refresh = false,
1211
}: {
1312
productId: string;
@@ -35,7 +34,6 @@ const fetchProductData = async ({
3534
export const useFetchProductData = ({
3635
productId,
3736
selectedOption = [],
38-
locale = "en",
3937
refresh = false,
4038
initialProduct = undefined,
4139
}: {
@@ -46,12 +44,11 @@ export const useFetchProductData = ({
4644
initialProduct?: any;
4745
}) => {
4846
return useQuery(
49-
["productData", productId, selectedOption, locale],
47+
["productData", productId, selectedOption],
5048
() =>
5149
fetchProductData({
5250
productId,
5351
selectedOption,
54-
locale,
5552
refresh,
5653
}),
5754
{

0 commit comments

Comments
 (0)