diff --git a/src/utils.js b/src/utils.js index 706cf88a..6bb7b88d 100644 --- a/src/utils.js +++ b/src/utils.js @@ -151,8 +151,8 @@ export function evalStorybookEnvironmentInfo({ waitForXPath }) { .then(el => `storybook/${el.innerText.match(/-?\d*\.?\d+/g).join('')}`) .catch(() => { waitForXPath("//strong[starts-with(text(), 'You are on Storybook ')]", 5000) - .then(el => `storybook/${el.innerText.match(/-?\d*\.?\d+/g).join('')}`) - .catch(() => 'storybook/unknown') + .then(el => `storybook/${el.innerText.match(/-?\d*\.?\d+/g).join('')}`) + .catch(() => 'storybook/unknown'); }); }