From 287234f430d4f536295008ab48c4cd493d778041 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 17 Jan 2023 12:20:26 +0100 Subject: [PATCH] fixed users not being able to report swiss german quotes --- frontend/src/ts/popups/quote-report-popup.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/popups/quote-report-popup.ts b/frontend/src/ts/popups/quote-report-popup.ts index 43dcd956a..456eaff05 100644 --- a/frontend/src/ts/popups/quote-report-popup.ts +++ b/frontend/src/ts/popups/quote-report-popup.ts @@ -41,7 +41,10 @@ export async function show(options = defaultOptions): Promise { state.previousPopupShowCallback = previousPopupShowCallback; - const { quotes } = await QuotesController.getQuotes(Config.language); + const language = + Config.language === "swiss_german" ? "german" : Config.language; + + const { quotes } = await QuotesController.getQuotes(language); state.quoteToReport = quotes.find((quote) => { return quote.id === quoteId; });