Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
jgunzelman88 committed Feb 4, 2023
1 parent fa9550e commit 5d4ab7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src-web/src/components/CardSearch/CardFilters.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
};
});
});
//Sets rarity(expantion) options
let rarityOptions = [];
rarityStore.subscribe((data) => {
Expand Down
2 changes: 1 addition & 1 deletion src-web/src/components/Shared/MultiSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<PokeRarity class="ml-2 w-6 h-6" rarity={option.name} />
{/if}
{#if option.icon != null}
<img class="h-4 w-4 ml-2 mr-2" src={option.icon} alt="" />
<img class="h-4 w-4 ml-2 mr-2 object-contain" src={option.icon} alt="" />
{/if}
<span class="bg-transparent">
{option.name}
Expand Down
2 changes: 1 addition & 1 deletion src-web/src/lib/CardMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export class Expansion {
public name: string;
public series: string;
public tcgName: string = "";
public releaseDate: String = "";
public releaseDate: string = "";
public numberOfCards: number = 0;
public logoURL: string;
public symbolURL: string;
Expand Down
2 changes: 1 addition & 1 deletion src-web/src/lib/CardSearchStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function executeCardSearch() {

export function init_local() {
expansions()
.then((data) => setStore.set(data))
.then((data) => setStore.set(data.sort((a,b) => Date.parse(a.releaseDate) > Date.parse(b.releaseDate)? -1 : 1)))
.catch((err) => console.log(`Failed to load sets \n ${err}`));
rarities()
.then((data) => rarityStore.set(data))
Expand Down

0 comments on commit 5d4ab7d

Please sign in to comment.