Skip to content

Commit

Permalink
Minor renaming and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VeckoTheGecko committed Jul 22, 2023
1 parent 769de31 commit a2bf55e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/lib/components/FilterForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
class="p-4 space-y-4"
>
<div class="flex flex-row flex-wrap gap-2">
{#each filterOptions as option}
{#each filterOptions as filterOption}
<!-- checkboxes -->
<TagWrapper
tagColor={option.color}
tagColor={filterOption.color}
extraClasses="input-wrapper-focus flex justify-between gap-2"
>
<Checkbox
name={option.name}
bind:checked={option.active}
name={filterOption.name}
bind:checked={filterOption.active}
>
<span
class="text-zinc-700 dark:text-zinc-300 italic"
>({option.count})</span
>({filterOption.count})</span
>
</Checkbox>
</TagWrapper>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { YoutubeChannel } from "./interfaces";
/**
* format subcount for user display
* @param number
* @returns
* @returns number as string
*/
export const semanticNumber = (number: number): string => {
// number less than 1000
Expand Down
2 changes: 1 addition & 1 deletion src/routes/resources/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
);
// ! Need to refactor later to make more readable
// For Intersection filterTags.size
// For intersection, minCommonTags = filterTags.size
// For union, minCommonTags = 1
let minCommonTags = filterLogic === "and" ? filterTags.size : 1;
Expand Down

0 comments on commit a2bf55e

Please sign in to comment.