Merge pull request #600 from keerifox/ninja-availability-patch

Fix minor console error caused by code expecting 100% success rate fetching a list of recommended representatives
This commit is contained in:
Joohansson (Json) 2023-08-18 16:00:40 +02:00 committed by GitHub
commit 3d63b63e6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,11 @@ export class NinjaService {
async recommendedRandomized(): Promise<any> {
const replist = await this.recommended();
if (replist == null) {
return [];
}
return this.randomizeByScore(replist);
}