conditional display of back link if saved rep

This commit is contained in:
2024-06-06 06:39:34 +01:00
parent 04b3326e4e
commit 28db6d87f5
4 changed files with 55 additions and 48 deletions
@@ -116,14 +116,16 @@ const RepLandOwner = (props) => {
>
{t("common:continue-button")}
</button>
<a
onClick={() => {
setRepresentationCapacity();
}}
className="govuk-link"
>
{t("common:back-link")}
</a>
{router.query.state != "edit" && (
<a
onClick={() => {
setRepresentationCapacity();
}}
className="govuk-link"
>
{t("common:back-link")}
</a>
)}
</div>
</div>
)}