File tree Expand file tree Collapse file tree
source/react-native/b2b/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const StytchMemberSessionContext = createContext<ApiB2bSessionV1MemberSes
1212 undefined ,
1313) ;
1414export const StytchOrganizationContext = createContext < ApiOrganizationV1Organization | undefined > (
15- undefined
15+ undefined ,
1616) ;
1717export const StytchB2BContext = createContext < StytchB2B | null > ( null ) ;
1818export const StytchB2BAuthenticationStateContext = createContext < B2BAuthenticationState > (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const useStytchMemberSession = (): ApiB2bSessionV1MemberSession | undefin
2222} ;
2323export const useStytchOrganization = ( ) : ApiOrganizationV1Organization | undefined => {
2424 return useContext ( StytchOrganizationContext ) ;
25- }
25+ } ;
2626export const useStytchB2B = ( ) : StytchB2B => {
2727 const client = useContext ( StytchB2BContext ) ;
2828 if ( client === null ) {
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ export const withStytchMemberSession = <T extends object>(
5353 return WithStytchMemberSession ;
5454} ;
5555export const withStytchOrganization = < T extends object > (
56- Component : React . ComponentType < T & { stytchOrganization : ApiOrganizationV1Organization | undefined } > ,
56+ Component : React . ComponentType <
57+ T & { stytchOrganization : ApiOrganizationV1Organization | undefined }
58+ > ,
5759) : React . ComponentType < T > => {
5860 const WithStytchOrganization : React . ComponentType < T > = ( props ) => {
5961 const organization = useStytchOrganization ( ) ;
@@ -133,7 +135,11 @@ export const StytchB2BProvider = ({
133135 newOrganization = state . organization ;
134136 }
135137 setClientState ( ( oldState ) => {
136- const newState = { member : newMember , memberSession : newMemberSession , organization : newOrganization } ;
138+ const newState = {
139+ member : newMember ,
140+ memberSession : newMemberSession ,
141+ organization : newOrganization ,
142+ } ;
137143 return mergeWithStableProps ( oldState , newState ) ;
138144 } ) ;
139145 setAuthenticationState ( state ) ;
You can’t perform that action at this time.
0 commit comments