From fe13787e5150b8936fb68b882ee665f7c72c1580 Mon Sep 17 00:00:00 2001 From: Collin Monahan Date: Sun, 24 Sep 2023 09:06:21 -0500 Subject: [PATCH] correct viewName on start-reading --- src/components/StartReadingButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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