Skip to content

Commit

Permalink
remove onError impl on stake flow
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Jun 21, 2023
1 parent 2202125 commit 4a073a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/ledger-live-mobile/src/components/Stake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ const StakeFlow = ({ route }: Props) => {
},
[navigation, parentRoute],
);
const onError = (error: Error) => {
logger.critical(error);
};

const requestAccount = useCallback(() => {
if (cryptoCurrencies.length === 1) {
Expand All @@ -72,7 +69,6 @@ const StakeFlow = ({ route }: Props) => {
currency: cryptoCurrencies[0],
onSuccess,
},
onError,
});
} else {
navigation.replace(NavigatorName.RequestAccount, {
Expand All @@ -82,7 +78,6 @@ const StakeFlow = ({ route }: Props) => {
allowAddAccount: true,
onSuccess,
},
onError,
});
}
}, [cryptoCurrencies, navigation, onSuccess]);
Expand Down

0 comments on commit 4a073a8

Please sign in to comment.