Skip to content

Commit

Permalink
Fix "no choices' notice wasn't cleared as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Sep 4, 2024
1 parent acd1db0 commit 8937cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ class Choices {
if (noticeType !== NoticeTypes.addChoice) {
if (!results.length) {
this._displayNotice(resolveStringFunction(this.config.noResultsText), NoticeTypes.noResults);
} else if (noticeType === NoticeTypes.noResults) {
} else {
this._clearNotice();
}
}
Expand Down

0 comments on commit 8937cac

Please sign in to comment.