made function name clearer to it's intended purpose

This commit is contained in:
John O'Keefe 2024-09-14 23:57:25 -04:00
parent 4866f49d13
commit be6c3439ca
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts">
import {
aniListAnime,
GetAniListSingleItem,
GetAnimeSingleItem,
} from "./helperModules/GlobalVariablesAndHelperFunctions.svelte";
import {onMount} from "svelte";
import Router from "svelte-spa-router"
@ -35,7 +35,7 @@
value = AniListGetSingleAnimeDefaultData
return value
})
await GetAniListSingleItem(Number(detail.params.id), true)
await GetAnimeSingleItem(Number(detail.params.id), true)
return Object.keys($aniListAnime).length!==0
},
],

View File

@ -2,7 +2,7 @@
import {
aniListLoggedIn,
aniListWatchlist,
GetAniListSingleItem,
GetAnimeSingleItem,
loading,
} from "../helperModules/GlobalVariablesAndHelperFunctions.svelte";
import {push} from "svelte-spa-router";
@ -45,7 +45,7 @@
</button>
<Rating id="anime-rating" total={5} size={35} rating={media.score/2.0}/>
<button class="mt-4 text-md font-semibold text-white-700"
on:click={() => GetAniListSingleItem(media.media.id, true)}>
on:click={() => GetAnimeSingleItem(media.media.id, true)}>
{
media.media.title.english === "" ?
media.media.title.romaji :

View File

@ -63,7 +63,7 @@
aniListAnime.subscribe(value => currentAniListAnime = value)
export async function GetAniListSingleItem(aniId: number, login: boolean): Promise<""> {
export async function GetAnimeSingleItem(aniId: number, login: boolean): Promise<""> {
await GetAniListItem(aniId, login).then(aniListResult => {
let finalResult: AniListGetSingleAnime
finalResult = aniListResult
@ -91,7 +91,7 @@
})
}
if (isSimklLoggedIn) {
await SimklSearch(currentAniListAnime.data.MediaList.media.id).then((value: SimklAnime) => {
await SimklSearch(currentAniListAnime.data.MediaList).then((value: SimklAnime) => {
simklAnime.set(value)
})
}