Skip to content

Commit

Permalink
fix: currentDownloadSource showing undefined (#217)
Browse files Browse the repository at this point in the history
* fix: currentDownloadSource showing undefined

* Update src/layout/HeroSection/HeroSection.svelte

Co-authored-by: TheOnlyTails <theonlytails@theonlytails.com>

Co-authored-by: TheOnlyTails <theonlytails@theonlytails.com>
  • Loading branch information
ThaUnknown and TheOnlyTails authored May 31, 2022
1 parent bc6249c commit 16038f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/HeroSection/HeroSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
onMount(async () => {
// Get the user's download preference
if (!localStorage.getItem("downloadSource")) {
if (!downloadSources.includes((localStorage.getItem("downloadSource") ?? "") as DownloadSource)) {
localStorage.setItem("downloadSource", "Microsoft Store");
}
currentDownloadSource = (localStorage.getItem("downloadSource") ?? "Microsoft Store") as DownloadSource;
Expand Down

0 comments on commit 16038f8

Please sign in to comment.