Skip to content

Commit

Permalink
Resolved lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Oct 14, 2022
1 parent 0e8e22a commit 414c3f7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/public/board/utils.ts
@@ -1,5 +1,5 @@
import type { Officer, Term } from './types';
import { TIERS, VISIBLE_TERMS } from './data';
import { VISIBLE_TERMS } from './data';
import { writable } from 'svelte/store';

export const termIndex = writable<number>(0);
Expand All @@ -10,8 +10,3 @@ export function getPositionByTermIndex(
): Officer['positions'][Term] | undefined {
return officer.positions[VISIBLE_TERMS[termIndex]];
}

export function getOfficerTierByTermIndex(officer: Officer, termIndex: number): string | undefined {
const position = getPositionByTermIndex(officer, termIndex);
return position ? TIERS[position.tier] : undefined;
}

0 comments on commit 414c3f7

Please sign in to comment.