Skip to content

Commit

Permalink
[DDW-178] Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed Jul 3, 2020
1 parent 35dfc2d commit 7192602
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/renderer/app/api/api.js
Expand Up @@ -1372,7 +1372,7 @@ export default class AdaApi {
recoveryPhrase,
}
);
logger.error('AdaApi::submitRedeemItnRewards success', { response });
logger.debug('AdaApi::submitRedeemItnRewards success', { response });
return _createRedeemItnRewardsFromServerData(response);
} catch (error) {
logger.error('AdaApi::submitRedeemItnRewards error', { error });
Expand Down
9 changes: 7 additions & 2 deletions source/renderer/app/stores/StakingStore.js
Expand Up @@ -482,8 +482,12 @@ export default class StakingStore extends Store {
}) => {
// @REDEEM TODO: Remove when the API endpoint is implemented
if (spendingPassword === 'FailureErr1') this.stakingFailure = 1;
if (spendingPassword === 'FailureErr2') this.stakingFailure = 2;
if (spendingPassword === 'FailureErr3') this.stakingFailure = 3;
else if (spendingPassword === 'FailureErr2') this.stakingFailure = 2;
else if (spendingPassword === 'FailureErr3') this.stakingFailure = 3;
else {
this.stakingFailure = 0;
this.stakingSuccess = true;
}
if (this.stakingFailure > 0) {
this.stakingSuccess = false;
}
Expand All @@ -506,6 +510,7 @@ export default class StakingStore extends Store {
this.rewardsTotal = 0;
this.transactionFees = 0;
this.finalTotal = 0;
this.stakingFailure = 0;
};

@action _closeRedeemDialog = () => {
Expand Down

0 comments on commit 7192602

Please sign in to comment.