@@ -227,6 +227,7 @@ const startAttempt = (
227227 fn : ( ) => void
228228) : GenAIAtlasSignInThunkAction < AttemptState > => {
229229 return ( dispatch , getState ) => {
230+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
230231 if ( getState ( ) . signIn . attemptId ) {
231232 throw new Error (
232233 "Can't start sign in with prompt while another sign in attempt is in progress"
@@ -257,6 +258,7 @@ export const signIntoAtlasWithModalPrompt = ({
257258> => {
258259 return ( dispatch , getState ) => {
259260 // Nothing to do if we already signed in.
261+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
260262 const { state } = getState ( ) . signIn ;
261263 if ( state === 'success' ) {
262264 return Promise . resolve ( ) ;
@@ -275,9 +277,11 @@ export const signIntoAtlasWithModalPrompt = ({
275277
276278export const signIn = ( ) : GenAIAtlasSignInThunkAction < Promise < void > > => {
277279 return async ( dispatch , getState , { atlasAuthService } ) => {
280+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
278281 if ( [ 'in-progress' , 'authenticated' ] . includes ( getState ( ) . signIn . state ) ) {
279282 return ;
280283 }
284+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
281285 const { attemptId } = getState ( ) . signIn ;
282286 if ( attemptId === null ) {
283287 return ;
@@ -286,6 +290,7 @@ export const signIn = (): GenAIAtlasSignInThunkAction<Promise<void>> => {
286290 controller : { signal } ,
287291 resolve,
288292 reject,
293+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
289294 } = getAttempt ( getState ( ) . signIn . attemptId ) ;
290295 dispatch ( {
291296 type : AtlasSignInActions . Start ,
@@ -331,10 +336,11 @@ export const cancelSignIn = (
331336) : GenAIAtlasSignInThunkAction < void > => {
332337 return ( dispatch , getState ) => {
333338 // Can't cancel sign in after the flow was finished indicated by current
334- // attempt id being set to null.
339+ // attempt id being set to null
340+ // @ts -expect-error reducers were combined so these methods are nested one layer lower
335341 if ( getState ( ) . signIn . attemptId === null ) {
336342 return ;
337- }
343+ } // @ts -expect-error reducers were combined so these methods are nested one layer lower
338344 const attempt = getAttempt ( getState ( ) . signIn . attemptId ) ;
339345 attempt . controller . abort ( ) ;
340346 attempt . reject ( reason ?? attempt . controller . signal . reason ) ;
0 commit comments