Skip to content

Commit

Permalink
conditionally display create asset link (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornebom authored May 24, 2023
1 parent 7510a1f commit b269213
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions centrifuge-app/src/pages/IssuerPool/Assets/CreateLoan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,13 @@ function IssuerCreateLoan() {
maxLength={100}
disabled={!templateId}
/>
<Box alignSelf="center" justifySelf="end">
<RouterLinkButton to={`/issuer/${pid}/configuration/create-asset-template`}>
Create template
</RouterLinkButton>
</Box>
{!templateId && (
<Box alignSelf="center" justifySelf="end">
<RouterLinkButton to={`/issuer/${pid}/configuration/create-asset-template`}>
Create template
</RouterLinkButton>
</Box>
)}
</Grid>
</PageSection>
<PageSection title="Pricing">
Expand Down

0 comments on commit b269213

Please sign in to comment.