From 9b4875eda821f01e43d67e58c859f25f2db816bc Mon Sep 17 00:00:00 2001 From: j3rem1e Date: Sun, 28 Feb 2021 23:02:27 +0100 Subject: [PATCH] Fix typo --- src/parser/collect-stories.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/collect-stories.js b/src/parser/collect-stories.js index 7cb9604..2aa72ac 100644 --- a/src/parser/collect-stories.js +++ b/src/parser/collect-stories.js @@ -77,10 +77,10 @@ export default (StoriesComponent, stories) => { return all; } - const unknowTemplate = template != null && templatesId.indexOf(template) < 0; + const unknownTemplate = template != null && templatesId.indexOf(template) < 0; const storyFn = (args) => { - if (unknowTemplate) { + if (unknownTemplate) { throw new Error(`Story ${name} is referencing an unknown template ${template}`); }