From 32020d62d670d217231410deb4d0c1130e1a27b7 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 7 Feb 2024 10:03:26 -0800 Subject: Hackfix to avoid creating identical profile objects during account creation --- src/state/session/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index c44f96dd6..b555a997b 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -237,6 +237,12 @@ export function Provider({children}: React.PropsWithChildren<{}>) { /*dont await*/ agent.upsertProfile(_existing => { return { displayName: '', + + // HACKFIX + // creating a bunch of identical profile objects is breaking the relay + // tossing this unspecced field onto it to reduce the size of the problem + // -prf + createdAt: new Date().toISOString(), } }) } -- cgit 1.4.1