From 14a9561884d6ef96a075829bedd9ec12477547fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Osante?= <37124700+aosante@users.noreply.github.com> Date: Fri, 2 Apr 2021 22:47:02 -0600 Subject: [PATCH] Use `type` variable destructured from `action` object in `0.1extra-4.js` Very small "improvement" here, but I thought id't be best if the destructured `type` variable was used for consistency. --- src/final/01.extra-4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/final/01.extra-4.js b/src/final/01.extra-4.js index 49c35acc..2a843e44 100644 --- a/src/final/01.extra-4.js +++ b/src/final/01.extra-4.js @@ -14,7 +14,7 @@ function countReducer(state, action) { } } default: { - throw new Error(`Unsupported action type: ${action.type}`) + throw new Error(`Unsupported action type: ${type}`) } } }