issue-5-product-gamesystems #10
@ -125,12 +125,14 @@ export class ProductGamesystem extends Gamesystem<ProductState, ProductTransitio
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    const binary_productState = this.findProductStateByInnerStates(innerStates);
 | 
			
		||||
    let binary_productState = this.findProductStateByInnerStates(innerStates);
 | 
			
		||||
    if(binary_productState == undefined) {
 | 
			
		||||
      return this.createState(innerStates)!;
 | 
			
		||||
    } else {
 | 
			
		||||
      return binary_productState!;
 | 
			
		||||
      binary_productState =  this.createState(innerStates)!;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let productInitial = true;
 | 
			
		||||
    binary_productState.innerStates.forEach(innerState => productInitial = productInitial && innerState.initial)
 | 
			
		||||
    return binary_productState!;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user