diff --git a/asset/js/widget/TermInput.js b/asset/js/widget/TermInput.js index 2e778e8c..18c2cd78 100644 --- a/asset/js/widget/TermInput.js +++ b/asset/js/widget/TermInput.js @@ -88,7 +88,7 @@ define(["BaseInput"], function (BaseInput) { } let addedTerms = this.exchangeTerm(); - if (addedTerms.length) { + if (Object.keys(addedTerms).length) { this.togglePlaceholder(); event.preventDefault(); this.autoSubmit(this.input, 'exchange', addedTerms);