diff --git a/front/components/PartitionVisualizer/PartitionVisualizer.tsx b/front/components/PartitionVisualizer/PartitionVisualizer.tsx
index 208acc2..7df9cfc 100644
--- a/front/components/PartitionVisualizer/PartitionVisualizer.tsx
+++ b/front/components/PartitionVisualizer/PartitionVisualizer.tsx
@@ -10,11 +10,6 @@ type PartitionVisualizerProps = {
};
const PartitionVisualizer = ({ songId }: PartitionVisualizerProps) => {
-
-
- if (!partitionRessources.data) {
- return ;
- }
return <>>;
};
diff --git a/front/components/VirtualPiano/Octave.tsx b/front/components/VirtualPiano/Octave.tsx
index 417c1b2..d8f3052 100644
--- a/front/components/VirtualPiano/Octave.tsx
+++ b/front/components/VirtualPiano/Octave.tsx
@@ -123,12 +123,7 @@ const Octave = (props: OctaveProps) => {
{showOctaveNumber && (
{
navigation.navigate('Search')}
+ onPress={() => navigation.navigate('Search', {})}
/>
) => {
diff --git a/front/views/ProfileView.tsx b/front/views/ProfileView.tsx
index a55f2f2..4de4f14 100644
--- a/front/views/ProfileView.tsx
+++ b/front/views/ProfileView.tsx
@@ -89,7 +89,7 @@ const ProfileView = () => {
navigation.navigate('Settings', {screen: 'Profile'})}
+ onPress={() => navigation.navigate('Settings')}
style={{margin: 10}}
translate={{ translationKey: 'settingsBtn' }}
/>
diff --git a/front/views/ScoreView.tsx b/front/views/ScoreView.tsx
index 9c66aa3..288ff90 100644
--- a/front/views/ScoreView.tsx
+++ b/front/views/ScoreView.tsx
@@ -28,6 +28,7 @@ type ScoreViewProps = {
good: number;
great: number;
perfect: number;
+ wrong: number;
max_score: number;
current_streak: number;
max_streak: number;
diff --git a/front/views/SearchView.tsx b/front/views/SearchView.tsx
index 0510b99..3982d9d 100644
--- a/front/views/SearchView.tsx
+++ b/front/views/SearchView.tsx
@@ -44,7 +44,7 @@ type SearchViewProps = {
const SearchView = (props: RouteProps) => {
let isRequestSucceeded = false;
const [filter, setFilter] = useState("all");
- const [stringQuery, setStringQuery] = useState(props.query || "");
+ const [stringQuery, setStringQuery] = useState(props?.query ?? "");
const { isLoading: isLoadingSong, data: songData = [] } = useQuery(
["song", stringQuery],
diff --git a/front/views/settings/SettingsProfileView.tsx b/front/views/settings/SettingsProfileView.tsx
index 9089b0c..cc838cc 100644
--- a/front/views/settings/SettingsProfileView.tsx
+++ b/front/views/settings/SettingsProfileView.tsx
@@ -154,7 +154,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
disabled: true,
data: {
value: "default",
- onValueChange: () => {},
+ onSelect: () => {},
options: [
{
label: "Default",