Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Resetting claim status when resetting the state (#2322)
Browse files Browse the repository at this point in the history
* Reseting state on network change

* Resetting claim status when resetting the state

Co-authored-by: Leandro <[email protected]>
  • Loading branch information
alfetopito and Leandro authored Jan 27, 2022
1 parent 17a76f2 commit f332962
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/custom/state/claim/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default createReducer(initialState, (builder) =>
state.isInvestFlowActive = initialState.isInvestFlowActive
state.claimedAmount = initialState.claimedAmount
state.estimatedGas = initialState.estimatedGas
state.claimStatus = initialState.claimStatus
})
.addCase(setIsTouched, (state, { payload: { index, isTouched } }) => {
state.investFlowData[index].isTouched = isTouched
Expand Down

0 comments on commit f332962

Please sign in to comment.