From f89ddc7551f3391e2d826c01207ab7cad1247208 Mon Sep 17 00:00:00 2001 From: Chris Pymm Date: Fri, 17 Sep 2021 10:54:01 +0100 Subject: [PATCH] fix issue #4 - correct var option to options --- .gitignore | 1 + lib/textSizes.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e8f7aaf..f5f62d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules tags +.idea \ No newline at end of file diff --git a/lib/textSizes.js b/lib/textSizes.js index 0d49625..58069de 100644 --- a/lib/textSizes.js +++ b/lib/textSizes.js @@ -28,7 +28,7 @@ module.exports = function({addUtilities, addBase, e, theme, options}) { const absStep = Math.abs(stepNum); if(baseIndex === -1) { - throw `Could not find baseStep: '${option.baseTextSize}' in the textSizes config.`; + throw `Could not find baseStep: '${options.baseTextSize}' in the textSizes config.`; } if( stepNum == 0 ) { @@ -81,7 +81,7 @@ module.exports = function({addUtilities, addBase, e, theme, options}) { const absStep = Math.abs(stepNum); if(baseIndex === -1) { - throw `Could not find baseStep: '${option.baseTextSize}' in the textSizes config.`; + throw `Could not find baseStep: '${options.baseTextSize}' in the textSizes config.`; }