diff --git a/src/routes/(home)/CourseList.svelte b/src/routes/(home)/CourseList.svelte index 2e7c064c..830e3a59 100644 --- a/src/routes/(home)/CourseList.svelte +++ b/src/routes/(home)/CourseList.svelte @@ -30,18 +30,19 @@

Favourites

- {#each courseVisits as courseVisit} - {#if courseVisit.favourite} + {#each courseVisits.filter((cv) => cv.favourite) as courseVisit (courseVisit.id)} +
- {/if} +
{/each}
+

Recently accessed

- {#each courseVisits as courseVisit} - {#if !courseVisit.favourite} + {#each courseVisits.filter((cv) => !cv.favourite) as courseVisit (courseVisit.id)} +
- {/if} +
{/each}
diff --git a/src/routes/(home)/CourseVisitCard.svelte b/src/routes/(home)/CourseVisitCard.svelte index 5f44aea1..d099d5a8 100644 --- a/src/routes/(home)/CourseVisitCard.svelte +++ b/src/routes/(home)/CourseVisitCard.svelte @@ -1,10 +1,13 @@