File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
dashboard/src/user-settings Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export default function Account() {
57
57
}
58
58
59
59
await updateUser . mutateAsync ( {
60
+ fullName : profileState . name ,
60
61
additionalData : {
61
62
profile : profileState ,
62
63
} ,
Original file line number Diff line number Diff line change @@ -194,23 +194,6 @@ export namespace User {
194
194
} ;
195
195
}
196
196
197
- export function setProfile ( user : User , profile : Profile ) : User {
198
- user . fullName = profile . name ;
199
- user . avatarUrl = profile . avatarURL ;
200
-
201
- if ( ! user . additionalData ) {
202
- user . additionalData = { } ;
203
- }
204
- if ( ! user . additionalData . profile ) {
205
- user . additionalData . profile = { } ;
206
- }
207
- user . additionalData . profile . emailAddress = profile . email ;
208
- user . additionalData . profile . companyName = profile . company ;
209
- user . additionalData . profile . lastUpdatedDetailsNudge = new Date ( ) . toISOString ( ) ;
210
-
211
- return user ;
212
- }
213
-
214
197
// TODO: refactor where this is referenced so it's more clearly tied to just analytics-tracking
215
198
// Let other places rely on the ProfileDetails type since that's what we store
216
199
// This is the profile data we send to our Segment analytics tracking pipeline
You can’t perform that action at this time.
0 commit comments