Skip to content

Commit

Permalink
fix double fetch on list sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed May 23, 2024
1 parent 8df9a1a commit b5f4a13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SDK/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const ListsSDK = {
const registration = registrations.find(
(registration) => registration.list_id === (listId || potlockRegistryListId),
);
return Near.view(_listContractId, "get_registration", {
registration_id: registration.id,
});
return registration;
}
},
asyncGetRegistration: (listId, registrantId) => {
Expand Down

0 comments on commit b5f4a13

Please sign in to comment.