made function name clearer to it's intended purpose
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
<script lang="ts">
 | 
					<script lang="ts">
 | 
				
			||||||
    import {
 | 
					    import {
 | 
				
			||||||
        aniListAnime,
 | 
					        aniListAnime,
 | 
				
			||||||
        GetAniListSingleItem,
 | 
					        GetAnimeSingleItem,
 | 
				
			||||||
    } from "./helperModules/GlobalVariablesAndHelperFunctions.svelte";
 | 
					    } from "./helperModules/GlobalVariablesAndHelperFunctions.svelte";
 | 
				
			||||||
    import {onMount} from "svelte";
 | 
					    import {onMount} from "svelte";
 | 
				
			||||||
    import Router from "svelte-spa-router"
 | 
					    import Router from "svelte-spa-router"
 | 
				
			||||||
@@ -35,7 +35,7 @@
 | 
				
			|||||||
                    value = AniListGetSingleAnimeDefaultData
 | 
					                    value = AniListGetSingleAnimeDefaultData
 | 
				
			||||||
                    return value
 | 
					                    return value
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
                await GetAniListSingleItem(Number(detail.params.id), true)
 | 
					                await GetAnimeSingleItem(Number(detail.params.id), true)
 | 
				
			||||||
                return Object.keys($aniListAnime).length!==0
 | 
					                return Object.keys($aniListAnime).length!==0
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
    import {
 | 
					    import {
 | 
				
			||||||
        aniListLoggedIn,
 | 
					        aniListLoggedIn,
 | 
				
			||||||
        aniListWatchlist,
 | 
					        aniListWatchlist,
 | 
				
			||||||
        GetAniListSingleItem,
 | 
					        GetAnimeSingleItem,
 | 
				
			||||||
        loading,
 | 
					        loading,
 | 
				
			||||||
    } from "../helperModules/GlobalVariablesAndHelperFunctions.svelte";
 | 
					    } from "../helperModules/GlobalVariablesAndHelperFunctions.svelte";
 | 
				
			||||||
    import {push} from "svelte-spa-router";
 | 
					    import {push} from "svelte-spa-router";
 | 
				
			||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
                            </button>
 | 
					                            </button>
 | 
				
			||||||
                            <Rating id="anime-rating" total={5} size={35} rating={media.score/2.0}/>
 | 
					                            <Rating id="anime-rating" total={5} size={35} rating={media.score/2.0}/>
 | 
				
			||||||
                            <button class="mt-4 text-md font-semibold text-white-700"
 | 
					                            <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.english === "" ?
 | 
				
			||||||
                                        media.media.title.romaji :
 | 
					                                        media.media.title.romaji :
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@
 | 
				
			|||||||
    aniListAnime.subscribe(value => currentAniListAnime = value)
 | 
					    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 => {
 | 
					        await GetAniListItem(aniId, login).then(aniListResult => {
 | 
				
			||||||
            let finalResult: AniListGetSingleAnime
 | 
					            let finalResult: AniListGetSingleAnime
 | 
				
			||||||
            finalResult = aniListResult
 | 
					            finalResult = aniListResult
 | 
				
			||||||
@@ -91,7 +91,7 @@
 | 
				
			|||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (isSimklLoggedIn) {
 | 
					        if (isSimklLoggedIn) {
 | 
				
			||||||
            await SimklSearch(currentAniListAnime.data.MediaList.media.id).then((value: SimklAnime) => {
 | 
					            await SimklSearch(currentAniListAnime.data.MediaList).then((value: SimklAnime) => {
 | 
				
			||||||
                simklAnime.set(value)
 | 
					                simklAnime.set(value)
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user