Skip to content

fix: update send to work with unified#13

Merged
luu-alex merged 3 commits intoprodfrom
fix-send-dialogue
Apr 1, 2026
Merged

fix: update send to work with unified#13
luu-alex merged 3 commits intoprodfrom
fix-send-dialogue

Conversation

@luu-alex
Copy link
Copy Markdown

@luu-alex luu-alex commented Apr 1, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for unified accounts in the SendDialog component by integrating the useInfoUserAbstraction hook. It adjusts the account type logic, asset sending parameters, and UI visibility based on whether the user has a unified account. The review feedback suggests removing debug console.log statements and cleaning up an unused variable assignment in the asset transfer logic.

Comment on lines +134 to +135
console.log("[SendDialog] sending", { tokenId, destination, amount, isUnifiedAccount });
if (isUnifiedAccount) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Debug console.log statements should be removed before merging to production to keep the console clean and avoid leaking internal state.

			if (isUnifiedAccount) {

Comment on lines +139 to +146
const result = await sendAsset({
destination,
sourceDex: "spot",
destinationDex: selectedToken === DEFAULT_QUOTE_TOKEN ? "" : "spot",
token: tokenId,
amount,
});
console.log("[SendDialog] sendAsset result", result);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Debug console.log statements should be removed. Additionally, the result of sendAsset is unused in this scope, so the assignment can be removed for cleaner code.

Suggested change
const result = await sendAsset({
destination,
sourceDex: "spot",
destinationDex: selectedToken === DEFAULT_QUOTE_TOKEN ? "" : "spot",
token: tokenId,
amount,
});
console.log("[SendDialog] sendAsset result", result);
await sendAsset({
destination,
sourceDex: "spot",
destinationDex: selectedToken === DEFAULT_QUOTE_TOKEN ? "" : "spot",
token: tokenId,
amount,
});

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 1, 2026

Deploying hyperterminal with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53219cc
Status:⚡️  Build in progress...

View logs

@luu-alex luu-alex merged commit 2181792 into prod Apr 1, 2026
2 of 3 checks passed
@luu-alex luu-alex deleted the fix-send-dialogue branch April 1, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant