diff --git a/front/components/Play/PartitionMagic.tsx b/front/components/Play/PartitionMagic.tsx index 78d875d..b738c29 100644 --- a/front/components/Play/PartitionMagic.tsx +++ b/front/components/Play/PartitionMagic.tsx @@ -2,7 +2,12 @@ import * as React from 'react'; import { Platform, View } from 'react-native'; import API from '../../API'; import { useQuery } from '../../Queries'; -import Animated, { useSharedValue, withTiming, Easing, useAnimatedStyle } from 'react-native-reanimated'; +import Animated, { + useSharedValue, + withTiming, + Easing, + useAnimatedStyle, +} from 'react-native-reanimated'; import { CursorInfoItem } from '../../models/SongCursorInfos'; import { Audio } from 'expo-av'; import { SvgContainer } from './SvgContainer'; @@ -214,7 +219,7 @@ const PartitionMagic = ({ const animatedStyle = useAnimatedStyle(() => ({ left: `${partitionOffset.value * 100}%`, - })) + })); return ( { const [endResult, setEndResult] = useState(); const [shouldPlay, setShouldPlay] = useState(false); const songHistory = useQuery(API.getSongHistory(songId)); - const endCalled = useRef(false) + const endCalled = useRef(false); const [score, setScore] = useState(0); // Between 0 and 100 const getElapsedTime = () => stopwatch.getElapsedRunningTime() - 3000; const [readyToPlay, setReadyToPlay] = useState(false); @@ -114,8 +114,7 @@ const PlayView = ({ songId }: PlayViewProps) => { }; const onEnd = () => { - if (endCalled.current == true) - return; + if (endCalled.current == true) return; endCalled.current = true; stopwatch.stop(); if (webSocket.current?.readyState != WebSocket.OPEN) {