Skip to content

Commit f19ec52

Browse files
committed
refactor: use toReversed()
1 parent ff4913d commit f19ec52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/routes/+page.svelte‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
{#if favorites.current.length === 0}
123123
{@render profile({ id: "0", username: "No favorites set!", quote: "Why don't you set a favorite?" }, { tip: true })}
124124
{:else}
125-
{#each [...favorites.current].reverse() as favorite, index (index)}
125+
{#each favorites.current.toReversed() as favorite, index (index)}
126126
{@render profile({ id: favorite.uuid, username: favorite.ign, role: Role.FAVORITE, displayName: favorite.displayName }, { favorite: true })}
127127
{/each}
128128
{/if}

0 commit comments

Comments
 (0)