Skip to content

Commit

Permalink
Refactor: make goBackOnSkip false if it doesnt exist in route.params
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed May 9, 2024
1 parent 2d69331 commit 691349e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/SetUpBiometrics/SetUpBiometrics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Screen } from "#components";
import { SetUpBiometrics as SetUpBiometricsBlock } from "#blocks";

export const SetUpBiometrics = ({ navigation, route }) => {
const { goBackOnSkip } = route.params;
const goBackOnSkip = route.params?.goBackOnSkip || false;

return (
<Screen hasEmergencyButton={false}>
Expand Down

0 comments on commit 691349e

Please sign in to comment.