Skip to content

Commit 7edb172

Browse files
committed
chore: small update
1 parent fc4cd6b commit 7edb172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Views/WhatsHappeningDetailView/WhatsHappeningDetailView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const WhatsHappeningDetailView = () => {
5050
const route =
5151
useRoute<RouteProp<{ params: WhatsHappeningDetailParams }, 'params'>>();
5252

53-
const { initialIndex = 0 } = route.params;
53+
const initialIndex = route.params?.initialIndex ?? 0;
5454

5555
const { items, isLoading, error, refresh } =
5656
useWhatsHappening(MAX_ITEMS_DISPLAYED);

0 commit comments

Comments
 (0)