Skip to content

Commit

Permalink
increase logging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrisch committed Jan 9, 2025
1 parent 1aa5e03 commit d79e3b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions screens/NewAccount/NewAccountPasskeyScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { Text } from "@/design-system/Text";
import { onPasskeyCreate } from "@/utils/passkeys/create-passkey";
import { loadAccountFromPasskey } from "@/utils/passkeys/load-client-from-passkey";
import { captureErrorWithToast } from "@/utils/capture-error";
import logger from "@/utils/logger";

export const NewAccountPasskeyScreen = memo(function () {
return (
Expand Down Expand Up @@ -65,6 +66,7 @@ const Content = memo(function Content() {

const handleError = useCallback(
(error: string) => {
logger.error(error);
setError(error);
captureErrorWithToast(error);
},
Expand Down
2 changes: 2 additions & 0 deletions screens/Onboarding/OnboardingPasskeyScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import { useRouter } from "@/navigation/useNavigation";
import { setAuthStatus } from "@/data/store/authStore";
import { captureErrorWithToast } from "@/utils/capture-error";
import logger from "@/utils/logger";

export const OnboardingPasskeyScreen = memo(function Screen() {
return (
Expand Down Expand Up @@ -69,6 +70,7 @@ const Content = memo(function Content() {

const handleError = useCallback(
(error: string) => {
logger.error(error);
setError(error);
captureErrorWithToast(error);
},
Expand Down

0 comments on commit d79e3b5

Please sign in to comment.