From 044855b9d816274a3bdbac9909224a305a18d3d4 Mon Sep 17 00:00:00 2001 From: Andrew Beaton Date: Wed, 13 May 2020 22:06:03 +0100 Subject: [PATCH] Update error messages in decluttering-card.ts Fixing spelling mistake and incorrect logic in error text. --- src/decluttering-card.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decluttering-card.ts b/src/decluttering-card.ts index fcc171a..bab0dc2 100644 --- a/src/decluttering-card.ts +++ b/src/decluttering-card.ts @@ -67,9 +67,9 @@ class DeclutteringCard extends LitElement { if (!templateConfig) { throw new Error(`The template "${config.template}" doesn't exist in decluttering_templates`); } else if (!(templateConfig.card || templateConfig.element)) { - throw new Error('You shoud define either a card or an element in the template'); + throw new Error('You should define either a card or an element in the template'); } else if (templateConfig.card && templateConfig.element) { - throw new Error('You can define a card and an element in the template'); + throw new Error('You cannot define a card and an element in the template'); } this._ro = new ResizeObserver(() => { this._displayHidden();