Skip to content

Commit

Permalink
fix: rm conditionanl webview display
Browse files Browse the repository at this point in the history
chore: add changeset
  • Loading branch information
liviuciulinaru committed Jun 6, 2024
1 parent 7e3f604 commit d51b5f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-houses-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

remove the swap webview conditional for demo0
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const SwapWebView = ({
const locale = useSelector(languageSelector);
const redirectToHistory = useRedirectToSwapHistory();
const enablePlatformDevTools = useSelector(enablePlatformDevToolsSelector);

const demo1 = useFeature("ptxSwapLiveAppDemoOne");
const hasSwapState = !!swapState;
const customPTXHandlers = usePTXCustomHandlers(manifest);

Expand Down Expand Up @@ -262,9 +262,10 @@ const SwapWebView = ({
// Keep the previous UI
// Display only the disabled swap button
if (
swapState.error ||
swapState.fromAmount === "0" ||
!(fromCurrency && addressFrom && toCurrency && addressTo)
demo1?.enabled &&
(swapState.error ||
swapState.fromAmount === "0" ||
!(fromCurrency && addressFrom && toCurrency && addressTo))
) {
return (
<Box width="100%">
Expand Down

0 comments on commit d51b5f0

Please sign in to comment.