Skip to content

Commit 127bbff

Browse files
committed
feat(allowlistaction): update metadata fetching response
- removes the delete action from the metadata fetcher. The requestmap is ephemeral so we let is run with the lifecycle of the method
1 parent eee9f72 commit 127bbff

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

allowlists/actions/getAllowListRecordsForAddressByClaimedWithMetadata.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ async function getMetadataWithDeduping(hypercertId: string) {
5050
const requestPromise = getHypercertMetadata(hypercertId);
5151
requestMap.set(hypercertId, requestPromise);
5252

53-
try {
54-
const result = await requestPromise;
55-
return result;
56-
} finally {
57-
requestMap.delete(hypercertId);
58-
}
53+
return await requestPromise;
5954
}
6055

6156
export async function getAllowListRecordsForAddressByClaimedWithMetadata({

0 commit comments

Comments
 (0)