Skip to content

Commit

Permalink
chore: remove guard
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduma-ledger committed Sep 17, 2024
1 parent e3b5030 commit 72c6c4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/ledger-live-mobile/src/screens/CustomError/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export default function CustomError({ route }: CustomErrorPropsProps) {
{error && "cause" in error && error.cause?.swapCode && (
<Trans
i18nKey="errors.CustomError.errorCode"
values={{ errorCode: error?.cause.swapCode }}
values={{ errorCode: error.cause.swapCode }}
/>
)}

{error && "message" in error && error?.message && (
{error && "message" in error && error.message && (
<Trans
i18nKey="errors.CustomError.errorMessage"
values={{ errorMessage: error?.message }}
values={{ errorMessage: error.message }}
/>
)}
</Text>
Expand Down

0 comments on commit 72c6c4c

Please sign in to comment.