diff options
Diffstat (limited to 'gui/src/state/state.ts')
| -rw-r--r-- | gui/src/state/state.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/src/state/state.ts b/gui/src/state/state.ts index 7d433f4..69633e3 100644 --- a/gui/src/state/state.ts +++ b/gui/src/state/state.ts @@ -91,7 +91,12 @@ export const useStore = creator((set, get) => ({ } } if ("nostr" in data.fact) { - set({ nostrFeed: data.fact.nostr }); + if ("feed" in data.fact.nostr) + set({ nostrFeed: data.fact.nostr.feed }); + if ("relays" in data.fact.nostr) + set({ relays: data.fact.nostr.relays }); + // if ("user" in data.fact.nostr) + // if ("thread" in data.fact.nostr) } } }); |
