Skip to content

Commit

Permalink
fix: 🐛 ✨ swapped scheduled and unscheduled meetings in summary page
Browse files Browse the repository at this point in the history
Signed-off-by: Adithya Anandsaikrishnan <[email protected]>
  • Loading branch information
adi-lux committed May 20, 2024
1 parent 87fb1f6 commit 8381a8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/routes/summary/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const load: PageServerLoad = async ({ cookies }) => {
} as unknown as ScheduledMeeting;
});

const unscheduledMeetings = meetingList.filter((meeting) => meeting.scheduled === false);
const unscheduledMeetings = meetingList.filter((meeting) => !meeting.scheduled);

const unscheduled: UnscheduledMeeting[] = unscheduledMeetings.map((meeting) => {
const startDate = meeting.startDate?.toLocaleDateString();
Expand Down
8 changes: 4 additions & 4 deletions src/routes/summary/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
style:border-color={currentTab === 0 ? "oklch(var(--a))" : undefined}
on:click={() => {
currentTab = 0;
}}>Scheduled</button
}}>Unscheduled</button
>
<button
role="tab"
Expand All @@ -41,7 +41,7 @@
style:border-color={currentTab === 1 ? "oklch(var(--a))" : undefined}
on:click={() => {
currentTab = 1;
}}>Unscheduled</button
}}>Scheduled</button
>
</div>
<div class="hidden w-full border-b-2 border-gray-300 lg:block" />
Expand All @@ -50,9 +50,9 @@

<div>
{#if currentTab === 0}
<ScheduledMeetingsList />
{:else if currentTab === 1}
<UnscheduledMeetingsList />
{:else if currentTab === 1}
<ScheduledMeetingsList />
{/if}
</div>
</div>

0 comments on commit 8381a8a

Please sign in to comment.