Skip to content

Commit 299fe7e

Browse files
committed
fix format on PatronStar
1 parent 815ad5c commit 299fe7e

File tree

1 file changed

+6
-1
lines changed
  • packages/common/src/components/PatronStar

1 file changed

+6
-1
lines changed

packages/common/src/components/PatronStar/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ interface PatronStarProps {
1212

1313
export function PatronStar({ subscriptionSince, ...props }: PatronStarProps) {
1414
return (
15-
<Tooltip content={`Patron since ${format(subscriptionSince, 'MMM Y')}`}>
15+
<Tooltip
16+
content={`Patron since ${format(
17+
new Date(subscriptionSince),
18+
'MMM yyyy'
19+
)}`}
20+
>
1621
<Container>
1722
<StarIcon {...props} />
1823
</Container>

0 commit comments

Comments
 (0)