Skip to content

Commit 5ef0817

Browse files
committed
fix(profile): reload claimable hypercerts
When switching the accounts on the profile page, the unclaimed hypercerts tab wasn't reloaded. It was due to caching, so I removed that. It isn't a lot of data anyway.
1 parent 875f1a2 commit 5ef0817

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

allowlists/getAllowListRecordsForAddressByClaimed.tsx

+12-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ export async function getAllowListRecordsForAddressByClaimed(
4242
address: string,
4343
claimed: boolean,
4444
) {
45-
const res = await request(HYPERCERTS_API_URL_GRAPH, query, {
46-
address,
47-
claimed,
48-
});
45+
const res = await request(
46+
HYPERCERTS_API_URL_GRAPH,
47+
query,
48+
{
49+
address,
50+
claimed,
51+
},
52+
new Headers({
53+
"Cache-Control": "no-cache",
54+
Pragma: "no-cache",
55+
}),
56+
);
4957

5058
const allowlistRecords = res.allowlistRecords.data;
5159
if (!allowlistRecords) {

0 commit comments

Comments
 (0)