From 2eac86163be2bd5627dab3e33e8b4e0926895442 Mon Sep 17 00:00:00 2001 From: Rico Kahler Date: Mon, 14 Oct 2019 14:35:34 -0400 Subject: [PATCH] fix spelling in error message (#1427) --- src/hooks/useSelector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useSelector.js b/src/hooks/useSelector.js index 4cc15432b..2a4eda6c0 100644 --- a/src/hooks/useSelector.js +++ b/src/hooks/useSelector.js @@ -57,7 +57,7 @@ function useSelectorWithStoreAndSubscription( selectedState = latestSelectedState.current } } catch (err) { - let errorMessage = `An error occured while selecting the store state: ${err.message}.` + let errorMessage = `An error occurred while selecting the store state: ${err.message}.` if (latestSubscriptionCallbackError.current) { errorMessage += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\nOriginal stack trace:`