You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note: We still save the accessToken into the user context to avoid reading from secure storage all the time when making api requests (performance, security, ..)
36
36
constpayload: Partial<IUserData>={
37
37
...user,
38
-
approachFromTime: newDate(user.approachFromTime),
39
-
approachToTime: newDate(user.approachToTime),
40
-
blacklistedRegions: user.blacklistedRegions
41
-
.map((br)=>{
42
-
returnmapBlacklistedRegionDTOToMapRegion(br);
43
-
})
44
-
.filter((br)=>br)asMapRegion[],
38
+
approachFromTime: user ? newDate(user.approachFromTime) : undefined,
39
+
approachToTime: user ? newDate(user.approachToTime) : undefined,
0 commit comments