DigixGlobal / governance-ui-components

Governance UI reusable components library
Other
3 stars 2 forks source link

[FIX] Update behavior for Continue Participation Modal (Resolves DGDG-584) #385

Closed mandres-digix closed 4 years ago

mandres-digix commented 4 years ago

Ref: DGDG-584. Reverts PR #354.

The Continue Participation modal will have the same conditions as before (see PR #245), but with the additional condition of AddressDetails.isParticipant === false.

The contract function to be callled is now withdrawDGD(1) instead of confirmContinuedParticipation().

If the user skips visiting the site during the locking phase of a new quarter, they will still see the modal but it will only give them the option to lock more DGDs.

Test Plan

Setup

Test Case 1: Locking Phase

Test Case 2: Main Phase

mikej-digix commented 4 years ago

iteration: 1 status: PASSED environment: LOCAL

Test Condition:

On Locking Phase image

On Main Phase image