Skip to content

Commit

Permalink
Merge pull request #2185 from aura-nw/baseline/serenity_20230803
Browse files Browse the repository at this point in the history
fix bug delegate validator detail

(cherry picked from commit 5f7c942)
  • Loading branch information
mtamkg authored and nhphuc2411 committed Aug 4, 2023
1 parent 3b27bba commit 35d8e41
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { AccountService } from 'src/app/core/services/account.service';
import { CommonService } from 'src/app/core/services/common.service';
import { MappingErrorService } from 'src/app/core/services/mapping-error.service';
import { NgxToastrService } from 'src/app/core/services/ngx-toastr.service';
import { ValidatorService } from 'src/app/core/services/validator.service';
import { WalletService } from 'src/app/core/services/wallet.service';
import { getFee } from 'src/app/core/utils/signing/fee';
import { Globals } from 'src/app/global/global';
Expand Down Expand Up @@ -46,7 +45,6 @@ export class DelegateItemComponent implements OnInit {
constructor(
public globals: Globals,
public commonService: CommonService,
private validatorService: ValidatorService,
private walletService: WalletService,
private modalService: NgbModal,
private accountService: AccountService,
Expand Down Expand Up @@ -112,12 +110,11 @@ export class DelegateItemComponent implements OnInit {
stakingToken: res?.data?.stake_reward,
dialogMode: DIALOG_STAKE_MODE.Delegate,
validatorDetail:
res?.data?.delegations.find(
res?.data?.delegations?.find(
(k) => k.validator_address === this.currentValidatorDetail?.operator_address,
) || {},
};
this.dataDelegate.validatorDetail['amount_staked'] = this.dataDelegate?.validatorDetail?.amount || 0;

document.getElementById('buttonOpenDialog').click();
}
});
Expand Down Expand Up @@ -179,7 +176,6 @@ export class DelegateItemComponent implements OnInit {
this.changeStatus.emit(false);
this.checkStatusExecuteBlock(hash, error);
};

executeStaking();
}
}
Expand Down

0 comments on commit 35d8e41

Please sign in to comment.