Skip to content

Commit

Permalink
Remove fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer committed Feb 26, 2025
1 parent a4f89a9 commit aacc3a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/buy/components/BuyProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1090,10 +1090,10 @@ describe('BuyProvider', () => {
expect(sendAnalytics).toHaveBeenCalledWith(BuyEvent.BuySuccess, {
address: '0x123',
amount: 0,
from: '',
from: undefined,
paymaster: false,
to: '',
transactionHash: '',
to: undefined,
transactionHash: undefined,
});
});

Expand Down
8 changes: 4 additions & 4 deletions src/buy/components/BuyProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ export function BuyProvider({

sendAnalytics(BuyEvent.BuySuccess, {
address,
amount: Number(from?.amount || 0),
from: from?.token?.address || '',
amount: Number(from?.amount),
from: from?.token?.address,
paymaster: !!paymaster,
to: to?.token?.address || '',
transactionHash: txHash || '',
to: to?.token?.address,
transactionHash: txHash,
});
}
// Emit Status
Expand Down

0 comments on commit aacc3a9

Please sign in to comment.