Skip to content

fix: hide refund button for RealUnit wallet users#973

Open
TaprootFreak wants to merge 1 commit intodevelopfrom
fix/hide-refund-button-realunit
Open

fix: hide refund button for RealUnit wallet users#973
TaprootFreak wants to merge 1 commit intodevelopfrom
fix/hide-refund-button-realunit

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • RealUnit-Wallet-User sollen Refunds ausschliesslich über den Support abwickeln
  • Refund-Button ("Confirm refund" / "Request refund") wird für RealUnit-User ausgeblendet — sowohl in der Transaktions-Detailansicht als auch in der Transaktionsliste
  • Nutzt user.activeAddress.wallet (vom Backend: wallet.displayName ?? wallet.name) mit startsWith('RealUnit') um auch bei einem allfälligen displayName korrekt zu matchen
  • Ergänzt den Backend-Block im API-Repo (fix: block self-service refund for RealUnit wallet users api#3274) als Frontend-UX-Verbesserung

Test plan

  • Als RealUnit-Wallet-User: Refund-Button ist in der Transaktions-Detailansicht nicht sichtbar
  • Als RealUnit-Wallet-User: Refund-Button ist in der Transaktionsliste nicht sichtbar
  • Als Nicht-RealUnit-User: Refund-Button erscheint wie gewohnt
  • Navigation zu /tx/{uid}/refund direkt als RealUnit-User → Backend gibt 400 zurück (Backend-Guard)

RealUnit wallet users should contact support for refunds instead of
using self-service. Hide the refund button in both the transaction
detail view and the transaction list for RealUnit wallets.
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.

2 participants