diff --git a/src/reducer.ts b/src/reducer.ts index f652b19..f735d75 100644 --- a/src/reducer.ts +++ b/src/reducer.ts @@ -86,7 +86,7 @@ const prepareDictation = (state: IState): { randomTones: Tone[] } => { return { randomTones: newRandom } } - +// see https://stackoverflow.com/questions/36730793/can-i-dispatch-an-action-in-reducer export const reducer = (state:IState, action:Action):IState => { switch (action.type) { case ActionType.setPause: return { ...state, sylPause: action.payload as number }