We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54e8a8f commit 2a9de18Copy full SHA for 2a9de18
components/LogisticNavigation.tsx
@@ -97,6 +97,10 @@ export default function LogisticNavigation({
97
98
const intl = useIntl();
99
100
+ const missingItemCount = getNodes(event.stock).filter(
101
+ (stockEntry) => stockEntry.missingCount > 0
102
+ ).length;
103
+
104
return (
105
<NavigationContainer independent={true}>
106
<AppDrawer.Navigator
@@ -227,9 +231,8 @@ export default function LogisticNavigation({
227
231
color={focused ? colors.white : colors.primaryLight}
228
232
/>
229
233
),
230
- tabBarBadge: getNodes(event.stock).filter(
- (stockEntry) => stockEntry.missingCount > 0
- ).length,
234
+ tabBarBadge:
235
+ missingItemCount === 0 ? undefined : missingItemCount,
236
}}
237
>
238
{(props) => (
0 commit comments