Skip to content

Commit

Permalink
Fix quotes post assets
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Jul 2, 2024
1 parent 16f27f3 commit e2f0d24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ interface AnchorQuotesModalProps {
onSubmit: (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>,
quoteId?: string,
destinationAsset?: string,
sourceAsset?: string,
buyAssset?: string,
sellAsset?: string,
) => void;
}

Expand Down
10 changes: 5 additions & 5 deletions packages/demo-wallet-client/src/components/Sep6/Sep6Deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ export const Sep6Deposit = () => {
const handleSubmitWithQuotes = (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>,
quoteId?: string,
destinationAsset?: string,
sourceAsset?: string,
buyAsset?: string,
sellAsset?: string,
) => {
event.preventDefault();

if (!(quoteId && destinationAsset && sourceAsset && formData.amount)) {
if (!(quoteId && buyAsset && sellAsset && formData.amount)) {
return;
}

Expand All @@ -201,8 +201,8 @@ export const Sep6Deposit = () => {
...formData,
amount: formData.amount,
quoteId,
destinationAsset,
sourceAsset,
destinationAsset: sellAsset,
sourceAsset: buyAsset,
}),
);
};
Expand Down

0 comments on commit e2f0d24

Please sign in to comment.