From f68a0ac145aa4d0123137f99c7d4e4f7ff2d31d6 Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Wed, 15 Dec 2021 23:27:19 -0300 Subject: [PATCH] minor tweak --- app/views/RoomView/LeftButtons.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/RoomView/LeftButtons.tsx b/app/views/RoomView/LeftButtons.tsx index 01818f192..44a197ce5 100644 --- a/app/views/RoomView/LeftButtons.tsx +++ b/app/views/RoomView/LeftButtons.tsx @@ -15,7 +15,7 @@ const styles = StyleSheet.create({ interface IRoomLeftButtonsProps { tmid?: string; - unreadsCount: number; + unreadsCount: number & string; navigation: StackNavigationProp; baseUrl: string; userId: string; @@ -43,7 +43,7 @@ const LeftButtons = React.memo( }: IRoomLeftButtonsProps) => { if (!isMasterDetail || tmid) { const onPress = useCallback(() => navigation.goBack(), []); - const label: any = unreadsCount > 99 ? '+99' : unreadsCount || ' '; + const label = unreadsCount > 99 ? '+99' : unreadsCount || ' '; const labelLength = label.length ? label.length : 1; const marginLeft = -2 * labelLength; const fontSize = labelLength > 1 ? 14 : 17;