diff --git a/nepalingo-web/src/hooks/useQuotes.tsx b/nepalingo-web/src/hooks/useQuotes.tsx index 7bf29ba..a405429 100644 --- a/nepalingo-web/src/hooks/useQuotes.tsx +++ b/nepalingo-web/src/hooks/useQuotes.tsx @@ -38,9 +38,7 @@ const useQuotes = (): QuotesResponse => { const quotesArray = quotesText.split(/\r\n|\n/).map((line: string) => { const [quote, englishTranslation] = parse(line); return { - text: quote - ? quote.trim().replace(/(^"|"$)/g, "") + selectedLanguage - : "", + text: quote ? quote.trim().replace(/(^"|"$)/g, "") : "", translation: englishTranslation ? englishTranslation.trim().replace(/(^"|"$)/g, "") : "",