Front: Fix some mistakes

This commit is contained in:
Arthur Jamet
2023-12-02 08:18:12 +01:00
parent 4d16723e38
commit 454835338f
3 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -89,7 +89,7 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
const [paused, setPause] = useState<boolean>(true);
const stopwatch = useStopwatch();
const [time, setTime] = useState(0);
const [endResult, setEndResult] = useState();
const [endResult, setEndResult] = useState<unknown>();
const songHistory = useQuery(API.getSongHistory(songId));
const [partitionRendered, setPartitionRendered] = useState(false); // Used to know when partitionview can render
const [score, setScore] = useState(0); // Between 0 and 100
@@ -336,12 +336,13 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
<PopupCC
isVisible={endResult != undefined}
>{
(() => endResult ? <ScoreModal {...endResult}/> : <></>)()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(() => endResult ? <ScoreModal {...endResult as any}/> : <></>)()
}</PopupCC>
<PopupCC
title={translate('selectPlayMode')}
description={translate('selectPlayModeExplaination')}
isVisible={false}
isVisible={type === undefined}
setIsVisible={
navigation.canGoBack()
? (isVisible) => {