Skip to content

Commit

Permalink
Remove unnecessary async from navigation (#151)
Browse files Browse the repository at this point in the history
This fixes SonarCloud issue:  "Promise returned in
function argument where a void return was expected."
  • Loading branch information
ConjuringCoffee authored Nov 14, 2023
1 parent cef47df commit 2f791bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Screens/SaveScreen/SaveScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const SaveScreen = ({ navigation, route }: MyStackScreenProps<ScreenName>
});

useEffect(() => {
const navigate = async () => {
const navigate = () => {
navigation.reset({
index: 0,
routes: [{ name: ScreenNames.SPLITTING_SCREEN }],
Expand Down

0 comments on commit 2f791bd

Please sign in to comment.