diff --git a/src/nonevm/near/WalletSelectorContext.tsx b/src/nonevm/near/WalletSelectorContext.tsx index e230bfff..6fe19ea9 100644 --- a/src/nonevm/near/WalletSelectorContext.tsx +++ b/src/nonevm/near/WalletSelectorContext.tsx @@ -147,7 +147,7 @@ export function WalletSelectorContextProvider({ return () => { subscription.unsubscribe(); - onHideSubscription.remove(); + onHideSubscription?.remove(); }; }, [selector]);