We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03abbe6 commit 8358a75Copy full SHA for 8358a75
projects/packages/forms/src/dashboard/inbox/utils.js
@@ -60,6 +60,8 @@ export const updateMenuCounterOptimistically = count => {
60
optimisticCount = parseInt( item.textContent.replace( /\D/g, '' ), 10 ) + count;
61
}
62
63
- updateBadge( item, optimisticCount );
+ if ( optimisticCount >= 0 ) {
64
+ updateBadge( item, optimisticCount );
65
+ }
66
} );
67
};
0 commit comments