From 9f17cd9f8323a58f898f049b65ae7ab0eeb2132b Mon Sep 17 00:00:00 2001 From: Arthur Jamet Date: Sun, 7 May 2023 14:57:06 +0100 Subject: [PATCH] Front: Score View: Back Button On Error --- front/views/ScoreView.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/front/views/ScoreView.tsx b/front/views/ScoreView.tsx index 21a9a3f..686cfe5 100644 --- a/front/views/ScoreView.tsx +++ b/front/views/ScoreView.tsx @@ -34,7 +34,13 @@ const ScoreView = ({ songId, route }: RouteProps) => { } const songScore = songHistoryQuery.data.find((history) => history.songID == songId); if (!songScore) { - return
; + return
+ + navigation.navigate('Home')} + /> +
; } return