Skip to content

Commit

Permalink
Type casting fix, see #28
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Sep 17, 2024
1 parent b152d13 commit ca444b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/coins/model/CoinsExperimentSceneModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class CoinsExperimentSceneModel extends PhetioObject {
// The scene is moving from preparation mode to measurement mode. Force the coins to be in the initial state
// chosen by the user so that it will match when it animates into the test box and be correct if revealed right
// away.
this.singleCoin.setMeasurementValueImmediate( this.initialCoinStateProperty.value as never );
this.singleCoin.setMeasurementValueImmediate( null as never );
this.coinSet.setMeasurementValuesImmediate( this.initialCoinStateProperty.value as QuantumCoinStates | ClassicalCoinStates );
}
} );
Expand Down

0 comments on commit ca444b4

Please sign in to comment.