Change copy for stake status
This commit is contained in:
committed by
Michael Vines
parent
3e2538919f
commit
5176a29955
@ -97,6 +97,14 @@ function OverviewCard({
|
|||||||
|
|
||||||
function DelegationCard({ stakeAccount }: { stakeAccount: StakeAccount }) {
|
function DelegationCard({ stakeAccount }: { stakeAccount: StakeAccount }) {
|
||||||
const { stake } = stakeAccount;
|
const { stake } = stakeAccount;
|
||||||
|
const displayStatus = () => {
|
||||||
|
let status = stakeAccount.displayState();
|
||||||
|
if (status !== "Delegated") {
|
||||||
|
status = "Not delegated";
|
||||||
|
}
|
||||||
|
return status;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<div className="card-header">
|
<div className="card-header">
|
||||||
@ -107,7 +115,7 @@ function DelegationCard({ stakeAccount }: { stakeAccount: StakeAccount }) {
|
|||||||
<TableCardBody>
|
<TableCardBody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Status</td>
|
<td>Status</td>
|
||||||
<td className="text-right">{stakeAccount.displayState()}</td>
|
<td className="text-right">{displayStatus()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{stake && (
|
{stake && (
|
||||||
|
Reference in New Issue
Block a user