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: swap & stake decoding was displayed twice #4325

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

compojoom
Copy link
Collaborator

What it solves

I was originally fixing a bug with staking decoding being displayed twice:
grafik

But actually it turned out to be also the same for swaps:
grafik

Resolves #
We introduced this bug with the redesign of the tx-details: fced301 . We moved the TxData block higher up in the tree, but failed to account that we display the same info with the ConfirmationOrder view. So this block should be hidden if we are dealing with a stake or swap txs.

How this PR fixes it

If we have any kind of StakingTxInfo or OrderTxInfo tx we hide the TxData block.

How to test it

Create a swap or stake tx. Sign it. Now in the tx queue hit execute. In production right now we display nearly the same data twice, with this fix only the appropriate confirmation view data is displayed.

Screenshots

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

Decoding in the SignOrExecuteForm was displayed twice
for stake and swap txs.
@compojoom compojoom changed the title fix(staking): receive field was displayed twice fix: swap & staking decoding was displayed twice Oct 7, 2024
@compojoom compojoom changed the title fix: swap & staking decoding was displayed twice fix: swap & stake decoding was displayed twice Oct 7, 2024
Copy link

github-actions bot commented Oct 7, 2024

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

github-actions bot commented Oct 7, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
78.1% (-0.01% 🔻)
12001/15367
🔴 Branches
58.18% (-0.04% 🔻)
3088/5308
🟡 Functions 65.09% 1889/2902
🟡 Lines
79.64% (-0.01% 🔻)
10832/13602
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / useTxPendingStatuses.ts
83.64% (-0.91% 🔻)
68.33% (-1.67% 🔻)
75%
92.63% (-1.05% 🔻)
🟢
... / index.tsx
87.06%
73.91% (-1.64% 🔻)
50% 86.42%

Test suite run success

1498 tests passing in 203 suites.

Report generated by 🧪jest coverage report action from 9564a91

@compojoom compojoom merged commit d6d5093 into dev Oct 7, 2024
15 checks passed
@compojoom compojoom deleted the fix-claim-decoding-displays-receive-twice branch October 7, 2024 14:27
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants