Skip to content

Commit

Permalink
Merge pull request #603 from eco-stake/conditional-ledger-tab
Browse files Browse the repository at this point in the history
Hide ledger tab when network supports
  • Loading branch information
tombeynon authored Sep 21, 2022
2 parents 69cf3af + 52bef9c commit 79a20c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ValidatorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function ValidatorModal(props) {
<Nav.Link role="button" eventKey="restake">REStake</Nav.Link>
</Nav.Item>
)}
{network.authzSupport && operator() && (
{network.authzSupport && !network.ledgerAuthzSupport && operator() && (
<Nav.Item>
<Nav.Link role="button" eventKey="ledger">Ledger Instructions</Nav.Link>
</Nav.Item>
Expand All @@ -177,7 +177,7 @@ function ValidatorModal(props) {
{operator() && (
<option value="restake">REStake</option>
)}
{network.authzSupport && operator() && (
{network.authzSupport && !network.ledgerAuthzSupport && operator() && (
<option value="ledger">Ledger Instructions</option>
)}
</select>
Expand Down

0 comments on commit 79a20c5

Please sign in to comment.