diff --git a/src/hiscores.ts b/src/hiscores.ts index 894c441..ad695ce 100644 --- a/src/hiscores.ts +++ b/src/hiscores.ts @@ -46,13 +46,13 @@ export async function getStats(rsn: string): Promise { axios(getStatsURL('ironman', rsn)).catch(err => err), axios(getStatsURL('hardcore', rsn)).catch(err => err), axios(getStatsURL('ultimate', rsn)).catch(err => err), - getRSNFormat(rsn), + getRSNFormat(rsn).catch(() => undefined), ]); const [ironRes, hcRes, ultRes, formattedName] = otherResponses; const player: Player = { - name: formattedName, + name: formattedName || rsn, mode: 'main', dead: false, deulted: false,