diff --git a/src/components/pages/game/game.tsx b/src/components/pages/game/game.tsx index 350ab02..fdc9742 100644 --- a/src/components/pages/game/game.tsx +++ b/src/components/pages/game/game.tsx @@ -82,7 +82,9 @@ export const GameSection = () => { useEffect(() => { if (predictionAnswer) { const timer = setTimeout(() => { - setValue('question', predictionAnswer.answer); + const formatted = predictionAnswer.answer.replaceAll('*', ''); + + setValue('question', formatted); setShowTip(true); }, 3200); diff --git a/tsconfig.app.json b/tsconfig.app.json index bd6c2a7..24a6306 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -1,9 +1,9 @@ { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "ES2020", + "target": "ES2021", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2021", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true,