diff --git a/frontend/src/ts/controllers/quotes-controller.ts b/frontend/src/ts/controllers/quotes-controller.ts index 4535c521bbdb..3f3778727761 100644 --- a/frontend/src/ts/controllers/quotes-controller.ts +++ b/frontend/src/ts/controllers/quotes-controller.ts @@ -48,9 +48,18 @@ class QuotesController { const normalizedLanguage = removeLanguageSize(language); if (this.quoteCollection.language !== normalizedLanguage) { - const data = await cachedFetchJson( - `quotes/${normalizedLanguage}.json` - ); + let data: QuoteData; + try { + data = await cachedFetchJson( + `quotes/${normalizedLanguage}.json` + ); + } catch (e) { + if (e instanceof Error && e?.message?.includes("404")) { + return defaultQuoteCollection; + } else { + throw e; + } + } if (data.quotes === undefined || data.quotes.length === 0) { return defaultQuoteCollection;