Skip to content

Commit

Permalink
Merge pull request #35868 from dukenv0307/fix/35358
Browse files Browse the repository at this point in the history
Fix 0 member format when leaving  a room and revisit
  • Loading branch information
Hayata Suenaga authored Feb 8, 2024
2 parents 517d7f5 + 4c85a09 commit ff362a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function MenuItem(
/>
)}
{/* Since subtitle can be of type number, we should allow 0 to be shown */}
{(subtitle ?? subtitle === 0) && (
{(subtitle === 0 || subtitle) && (
<View style={[styles.justifyContentCenter, styles.mr1]}>
<Text style={[styles.textLabelSupporting, ...(combinedStyle as TextStyle[])]}>{subtitle}</Text>
</View>
Expand Down

0 comments on commit ff362a0

Please sign in to comment.