Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Unbreak updating games list if user is logged in to Amazon account, but has no games installed. #3016

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/backend/storeManagers/nile/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ export async function listUpdateableGames(): Promise<string[]> {
)
deleteAbortController(abortID)

if (!output) {
/*
* Nothing installed: nothing to update, output will be empty and JSON.parse can't
* handle empty strings (they aren't proper JSON).
*/
return []
}

const updates: string[] = JSON.parse(output)
if (updates.length) {
logInfo(['Found', `${updates.length}`, 'games to update'], LogPrefix.Nile)
Expand Down