For anyone else trying to figure this out, I didn’t find THE solution, but I did find A solution… it’s simple javascript. Wrap your notification in a div with the class “count” or whatever works for you, and hide it when its content is ‘0’.
<script type="text/javascript">
//HIDE NOTIFICATION IF COUNT IS ZERO
let divs = document.getElementsByClassName('count');
for (let x = 0; x < divs.length; x++) {
let div = divs[x];
let content = div.innerHTML.trim();
if (content == '0') {
div.style.display = 'none';
}
}
</script>