Skip to content

fix(kyc): skip completed steps in pendingReview, remove canTrade#523

Merged
TaprootFreak merged 1 commit into
developfrom
fix/kyc-pending-review-and-remove-canTrade
May 22, 2026
Merged

fix(kyc): skip completed steps in pendingReview, remove canTrade#523
TaprootFreak merged 1 commit into
developfrom
fix/kyc-pending-review-and-remove-canTrade

Conversation

@davidleomay
Copy link
Copy Markdown
Contributor

Summary

  • pendingReview step selection picked the first isRequired step, but could land on one that was already completed. Now filters isRequired && status != completed so it always selects the step actually under review.
  • Removed UserKycDto.canTrade — field, comment, constructor param, and JSON deserialization — since the API no longer returns it.

Test plan

  • All 23 existing kyc_cubit_test cases pass
  • Verify pendingReview routes to the correct in-review step when earlier required steps are already completed
  • Confirm no runtime references to canTrade remain

…de field

pendingReview picked the first isRequired step regardless of completion
status, so it could select an already-completed step instead of the one
actually under review. Now filters on isRequired && !completed.

Also removes UserKycDto.canTrade (field, comment, constructor param,
JSON deser) since the API no longer returns it.
@TaprootFreak TaprootFreak added the tier3:full Opt-in: run Tier 3 Maestro handbook flows on this PR label May 22, 2026
@TaprootFreak TaprootFreak merged commit 416e781 into develop May 22, 2026
5 checks passed
@TaprootFreak TaprootFreak deleted the fix/kyc-pending-review-and-remove-canTrade branch May 22, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tier3:full Opt-in: run Tier 3 Maestro handbook flows on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants