Skip to content

Commit

Permalink
Merge branch 'master' into tests-build-tx
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesunikim authored Nov 23, 2024
2 parents 8728851 + 9b4a94a commit 02bbf46
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/app/(sidebar)/endpoints/components/SavedEndpointsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,16 @@ export const SavedEndpointsPage = () => {
>();

useEffect(() => {
setSavedEndpointsHorizon(localStorageSavedEndpointsHorizon.get());
setSavedRpcMethods(localStorageSavedRpcMethods.get());
}, []);
const horizonItems = localStorageSavedEndpointsHorizon
.get()
.filter((h) => h.network.id === network.id);
const rpcItems = localStorageSavedRpcMethods
.get()
.filter((r) => r.network.id === network.id);

setSavedEndpointsHorizon(horizonItems);
setSavedRpcMethods(rpcItems);
}, [network.id]);

useEffect(() => {
const mappedRpcIndex = savedRpcMethods.reduce(
Expand Down

0 comments on commit 02bbf46

Please sign in to comment.