Skip to content

Commit

Permalink
FIx for react native (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 authored Mar 21, 2024
1 parent e7745ec commit 586aa46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const normalizeTransactionResponsePayload = (
payload: TransactionResponse,
): TransactionResponse => {
// Firefox can't serialize functions
if (navigator.userAgent.toLowerCase().includes('firefox')) {
if (navigator.userAgent?.toLowerCase().includes('firefox')) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { wait: _, ...cleanedPayload } = payload;
return cleanedPayload as TransactionResponse;
Expand Down

0 comments on commit 586aa46

Please sign in to comment.