diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-02-07 10:03:26 -0800 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-02-07 10:03:26 -0800 |
commit | 32020d62d670d217231410deb4d0c1130e1a27b7 (patch) | |
tree | 7f88db11fe10620f9e1480567cf283be4f9c0752 /src | |
parent | fc40b200edc9ac924173d3604f4126ab16b39d42 (diff) | |
download | voidsky-32020d62d670d217231410deb4d0c1130e1a27b7.tar.zst |
Hackfix to avoid creating identical profile objects during account creation
Diffstat (limited to 'src')
-rw-r--r-- | src/state/session/index.tsx | 6 |
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(), } }) } |