Skip to content

Commit eb5d83c

Browse files
committed
fix: default securityContext attributes
1 parent eb602b1 commit eb5d83c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/context/SecurityContext/index.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ import React from 'react';
44
type SecurityContextType = {
55
authorizationToken: string;
66
setAuthorizationToken: (token: string) => void;
7-
userDetails: UserType;
7+
userDetails: Partial<UserType>;
88
setUserDetails: (userDetails: UserType) => void;
99
};
1010

1111
const SecurityContext = React.createContext<SecurityContextType>({
1212
authorizationToken: '',
1313
setAuthorizationToken: () => {},
14-
userDetails: null,
14+
userDetails: {
15+
firstName: null,
16+
lastName: null,
17+
username: null,
18+
},
1519
setUserDetails: () => {},
1620
});
1721

0 commit comments

Comments
 (0)