fix prettier

This commit is contained in:
GitBluub
2024-01-17 10:12:59 +01:00
committed by Clément Le Bihan
parent a24a960184
commit 2781276c12
3 changed files with 19 additions and 21 deletions
+3 -4
View File
@@ -174,8 +174,7 @@ const PlayView = ({ songId }: PlayViewProps) => {
toast.show({ description: 'Scoro: ' + data.error });
return;
}
if (data.type == 'pong')
return;
if (data.type == 'pong') return;
if (data.type == 'end') {
const maxPoints = data.score.max_score || 1;
const points = data.overallScore;
@@ -193,8 +192,8 @@ const PlayView = ({ songId }: PlayViewProps) => {
setScore(Math.floor((Math.max(points, 0) * 100) / maxPoints));
if (data.type == 'step') {
setTime(data.timestamp)
return
setTime(data.timestamp);
return;
}
let formattedMessage = '';
let messageColor: ColorSchemeType | undefined;