Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix/LIVE-14247]: close banner after calling on cancel when disabled broadcast is enabled. #7940

Merged
merged 5 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fresh-dolls-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

close drawer after cancel with disable broadcast
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ const Body = ({ data, onClose }: { data: Data; onClose?: () => void | undefined
if (!isSwapTransaction || (isSwapTransaction && !isDemo3Enabled)) {
const error = new DisabledTransactionBroadcastError();
setError(error);
return onCancel(error);
onCancel(error);
return onClose?.();
} else {
return handleTransactionResult(result, operation);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ test("Wallet API methods @smoke", async ({ page }) => {
await drawer.selectCurrency("tether usd");
// Test name and balance for tokens
await expect(drawer.getAccountButton("tether usd", 2)).toContainText(
"Ethereum 3 (USDT)71.8174 USDT", // Special space present in the actual rendered element apparently
"Ethereum 3 (USDT)71.8174Β USDT",
);
await drawer.back();

Expand Down
Loading