From 7e3a9cd1d9b5f847de3237ac3cbd228992951ed7 Mon Sep 17 00:00:00 2001 From: ptr-086 <111133859+ptr-086@users.noreply.github.com> Date: Fri, 9 Dec 2022 22:24:16 +0100 Subject: [PATCH] Default return value in inputStateReducer It should be initialInputState instead of inputStateReducer before right closing of the bracket. --- code/12-finished/src/hooks/use-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/12-finished/src/hooks/use-input.js b/code/12-finished/src/hooks/use-input.js index db66cc4635..88b447ef2a 100644 --- a/code/12-finished/src/hooks/use-input.js +++ b/code/12-finished/src/hooks/use-input.js @@ -15,7 +15,7 @@ const inputStateReducer = (state, action) => { if (action.type === 'RESET') { return { isTouched: false, value: '' }; } - return inputStateReducer; + return initialInputState; }; const useInput = (validateValue) => {