aboutsummaryrefslogtreecommitdiff
path: root/cmd/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/status.go')
-rw-r--r--cmd/status.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/status.go b/cmd/status.go
index 6a23bfd..05b9dc4 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -83,7 +83,7 @@ func setAnimeStatus(statusInput, searchInput string) {
}
if statusInput == "" {
- ui.AnimeStatusMenu(anime)
+ ui.AnimeStatusMenu(selectedAnime)
} else {
resp := mal.SetAnimeStatus(anime.Id, statusInput)
fmt.Println(ui.CreateStatusUpdateConfirmationMessage(anime.Title, resp.Status))
@@ -102,7 +102,7 @@ func setMangaStatus(statusInput, searchInput string) {
}
manga := ui.MangaSearch("Select Manga:", searchInput)
- selectedManga := mal.GetAnimeData(manga.Id, []string{"my_list_status"})
+ selectedManga := mal.GetMangaData(manga.Id, []string{"my_list_status"})
if queryOnlyMode {
status := selectedManga.MyListStatus.Status
@@ -112,9 +112,9 @@ func setMangaStatus(statusInput, searchInput string) {
}
if statusInput == "" {
- ui.MangaStatusMenu(manga)
+ ui.MangaStatusMenu(selectedManga)
} else {
- resp := mal.SetMangaStatus(manga.Id, statusInput)
+ resp := mal.SetMangaStatus(selectedManga.Id, statusInput)
fmt.Println(resp.Status)
fmt.Println(ui.CreateStatusUpdateConfirmationMessage(manga.Title, resp.Status))
}