about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-02-07 10:03:26 -0800
committerPaul Frazee <pfrazee@gmail.com>2024-02-07 10:03:26 -0800
commit32020d62d670d217231410deb4d0c1130e1a27b7 (patch)
tree7f88db11fe10620f9e1480567cf283be4f9c0752 /src
parentfc40b200edc9ac924173d3604f4126ab16b39d42 (diff)
downloadvoidsky-32020d62d670d217231410deb4d0c1130e1a27b7.tar.zst
Hackfix to avoid creating identical profile objects during account creation
Diffstat (limited to 'src')
-rw-r--r--src/state/session/index.tsx6
1 files changed, 6 insertions, 0 deletions
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(),
           }
         })
       }