Skip to content

Commit

Permalink
fix spelling in error message (#1427)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler authored and markerikson committed Oct 14, 2019
1 parent 6725400 commit 2eac861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:`
Expand Down

0 comments on commit 2eac861

Please sign in to comment.