diff --git a/src/components/StartReadingButton.js b/src/components/StartReadingButton.js index d567a1f..cf04550 100644 --- a/src/components/StartReadingButton.js +++ b/src/components/StartReadingButton.js @@ -1,5 +1,6 @@ import React, { useCallback } from "react"; import { useSetRecoilState } from "recoil"; +import { VIEW_NAME_WORDS_RUNNER } from "../constants"; import state from "../state"; import Button from "./Button"; @@ -7,7 +8,7 @@ const StartReadingButton = () => { const setViewName = useSetRecoilState(state.viewName); const onClick = useCallback(() => { - setViewName(""); + setViewName(VIEW_NAME_WORDS_RUNNER); }, [setViewName]); return