diff --git a/src/components/badge/BadgeDirective.js b/src/components/badge/BadgeDirective.js index 804900dcb..242405315 100644 --- a/src/components/badge/BadgeDirective.js +++ b/src/components/badge/BadgeDirective.js @@ -34,8 +34,9 @@ const BadgeDirective = { if (options.oldValue !== options.value) { let badge = document.getElementById(el.$_pbadgeId); - if (options.value && DomHandler.hasClass(badge, 'p-badge-dot')) { - DomHandler.removeClass(badge, 'p-badge-dot'); + if (options.value) { + if (DomHandler.hasClass(badge, 'p-badge-dot')) + DomHandler.removeClass(badge, 'p-badge-dot'); if (String(options.value).length === 1) DomHandler.addClass(badge, 'p-badge-no-gutter');