From f43432b2e5e0dbcd3acfe1662f00f1a09139d535 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:04:08 -0400 Subject: [PATCH 1/2] set api for visitor also, not just for connected wallet --- explorer/src/providers/WalletProvider.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/explorer/src/providers/WalletProvider.tsx b/explorer/src/providers/WalletProvider.tsx index 24b78c265..382ea7910 100644 --- a/explorer/src/providers/WalletProvider.tsx +++ b/explorer/src/providers/WalletProvider.tsx @@ -180,7 +180,6 @@ export const WalletProvider: FC = ({ children }) => { }, [actingAccount]) useEffect(() => { - if (!injector) return setup() }, [injector, setup]) From 74c71dab886247917907336c43ebc46e800dda68 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner <82244926+marc-aurele-besner@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:04:24 -0400 Subject: [PATCH 2/2] allow visitor to see rpc operators list --- explorer/src/components/Staking/OperatorsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/components/Staking/OperatorsList.tsx b/explorer/src/components/Staking/OperatorsList.tsx index 881234b16..9315e898a 100644 --- a/explorer/src/components/Staking/OperatorsList.tsx +++ b/explorer/src/components/Staking/OperatorsList.tsx @@ -515,7 +515,7 @@ export const OperatorsList: FC = () => { }, []) const operatorsConnection = useMemo(() => { - if (useRpcData && subspaceAccount) { + if (useRpcData) { const myRpcNominatorIds = deposits .filter((d) => d.account === subspaceAccount) .map((n) => n.operatorId.toString())