+
diff --git a/src/providers/NostrProvider/index.tsx b/src/providers/NostrProvider/index.tsx
index f9938e3..cb06e5b 100644
--- a/src/providers/NostrProvider/index.tsx
+++ b/src/providers/NostrProvider/index.tsx
@@ -30,7 +30,7 @@ type TNostrContext = {
relayList: TRelayList | null
followListEvent?: Event
muteListEvent?: Event
- favoriteRelaysEvent?: Event
+ favoriteRelaysEvent: Event | null
account: TAccountPointer | null
accounts: TAccountPointer[]
nsec: string | null
@@ -82,7 +82,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
const [relayList, setRelayList] = useState
(null)
const [followListEvent, setFollowListEvent] = useState(undefined)
const [muteListEvent, setMuteListEvent] = useState(undefined)
- const [favoriteRelaysEvent, setFavoriteRelaysEvent] = useState(undefined)
+ const [favoriteRelaysEvent, setFavoriteRelaysEvent] = useState(null)
useEffect(() => {
const init = async () => {
@@ -117,6 +117,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
setProfile(null)
setProfileEvent(null)
setNsec(null)
+ setFavoriteRelaysEvent(null)
if (!account) {
return
}