Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
russellsamora committed Nov 4, 2024
1 parent d40f856 commit f1986eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Projects.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
}));
export let category;
let year = category == "current" ? Math.max(...data.map((d) => d.year)) : Math.max(...data.map((d) => d.year))-1;
let year =
category == "current"
? Math.max(...data.map((d) => d.year))
: Math.max(...data.map((d) => d.year)) - 1;
const maxYear = Math.max(...data.map((d) => d.year));
$: years = [...new Set(data.map((d) => d.year))];
Expand Down

0 comments on commit f1986eb

Please sign in to comment.