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:
commit
3d63b63e6c
1 changed files with 5 additions and 0 deletions
|
|
@ -54,6 +54,11 @@ export class NinjaService {
|
|||
|
||||
async recommendedRandomized(): Promise<any> {
|
||||
const replist = await this.recommended();
|
||||
|
||||
if (replist == null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return this.randomizeByScore(replist);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue