Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit ac216b2

Browse files
authored
Fix claim condition hook cache keys (#103)
1 parent e5472b0 commit ac216b2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/utils/cache-keys.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ export const cacheKeys = {
252252
createContractCacheKey(
253253
contractAddress,
254254
tokenId
255-
? ["claimConditions", "getActive", { tokenId }]
256-
: ["claimConditions", "getActive"],
255+
? ["claimConditions", "getAll", { tokenId }]
256+
: ["claimConditions", "getAll"],
257257
),
258258
getClaimIneligibilityReasons: (
259259
contractAddress: RequiredParam<ContractAddress>,
@@ -263,8 +263,13 @@ export const cacheKeys = {
263263
createContractCacheKey(
264264
contractAddress,
265265
tokenId
266-
? ["claimConditions", "getActive", { tokenId }, params]
267-
: ["claimConditions", "getActive", params],
266+
? [
267+
"claimConditions",
268+
"getIneligibilityReasons",
269+
{ tokenId },
270+
params,
271+
]
272+
: ["claimConditions", "getIneligibilityReasons", params],
268273
),
269274
},
270275

0 commit comments

Comments
 (0)