Skip to content

Commit 6f20014

Browse files
committed
fix(MessageViewButton): remove counter restriction
1 parent 0d755b3 commit 6f20014

File tree

1 file changed

+2
-2
lines changed
  • packages/main/src/components/MessageViewButton

1 file changed

+2
-2
lines changed

packages/main/src/components/MessageViewButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface MessageViewButtonProptypes
3333
/**
3434
* Defines the number of messages for a given message type.
3535
*
36-
* __Note:__ Numbers smaller than 2 are not displayed.
36+
* __Note:__ Numbers smaller than 1 are not displayed.
3737
*/
3838
counter?: number;
3939
}
@@ -78,7 +78,7 @@ const MessageViewButton = forwardRef<ButtonDomRef, MessageViewButtonProptypes>((
7878
tooltip={tooltip ?? i18nBundle.getText(title)}
7979
accessibleName={accessibleName ?? label}
8080
>
81-
{counter > 1 && counter}
81+
{counter > 0 && counter}
8282
</Button>
8383
);
8484
});

0 commit comments

Comments
 (0)