Front: Score Button: Better redirect

This commit is contained in:
Arthur Jamet
2023-11-30 17:55:08 +01:00
parent 72f17c018e
commit 4d16723e38
+4 -1
View File
@@ -93,7 +93,10 @@ const ScoreModal = (props: ScoreModalProps) => {
icon={Play}
type="filled"
title={translate('menuMusic')}
onPress={() => navigation.goBack()}
onPress={() => navigation.canGoBack()
? navigation.goBack()
: navigation.navigate('HomeNew', {})
}
/>
</Row>
</Column>