Skip to content

Commit

Permalink
Update sorting for chips projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Awkewainze committed Dec 4, 2024
1 parent 116a655 commit 5cc536f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const VM_PROJECTS: Record<"07" | "08", string[]> = {
};

function partitionChips(project: "01" | "02" | "03" | "05", chips: string[]) {
const base = CHIP_PROJECTS["01"];
const base = CHIP_PROJECTS[project];
// Get all the default project chips, in order, and remove those that aren't in `chips`.
const core = base.filter((name) => chips.includes(name));
// Get all the chips that aren't in base.
Expand All @@ -237,7 +237,7 @@ export function sortChips(project: string, chips: string[]): string[] {
}
case "2":
case "02": {
return partitionChips("01", chips);
return partitionChips("02", chips);
}
case "3":
case "03": {
Expand Down

0 comments on commit 5cc536f

Please sign in to comment.