@@ -65,7 +65,10 @@ const Buttons = styled.div(({ theme }) => ({
6565 width : "fit-content" ,
6666 margin : "0 auto 50px auto" ,
6767 [ theme . breakpoints . down ( "md" ) ] : {
68- margin : "0 auto 32px auto" ,
68+ flexDirection : "column" ,
69+ width : "100%" ,
70+ maxWidth : "460px" ,
71+ marginBottom : "32px" ,
6972 } ,
7073} ) )
7174
@@ -768,11 +771,13 @@ const CertificatePage: React.FC<{
768771 onClose = { ( ) => setShareOpen ( false ) }
769772 pageUrl = { pageUrl }
770773 />
771- < DigitalCredentialDialog
772- verifiableCredential = { verifiableCredential }
773- open = { digitalCredentialDialogOpen }
774- onClose = { ( ) => setDigitalCredentialDialogOpen ( false ) }
775- />
774+ { verifiableCredential ? (
775+ < DigitalCredentialDialog
776+ verifiableCredential = { verifiableCredential }
777+ open = { digitalCredentialDialogOpen }
778+ onClose = { ( ) => setDigitalCredentialDialogOpen ( false ) }
779+ />
780+ ) : null }
776781 < Title >
777782 < Typography variant = "h3" >
778783 < strong > { title } </ strong > { displayType }
@@ -786,13 +791,15 @@ const CertificatePage: React.FC<{
786791 >
787792 Download PDF
788793 </ Button >
789- < Button
790- variant = "bordered"
791- startIcon = { < RiDownloadLine /> }
792- onClick = { ( ) => setDigitalCredentialDialogOpen ( true ) }
793- >
794- Download Digital Credential
795- </ Button >
794+ { verifiableCredential ? (
795+ < Button
796+ variant = "bordered"
797+ startIcon = { < RiDownloadLine /> }
798+ onClick = { ( ) => setDigitalCredentialDialogOpen ( true ) }
799+ >
800+ Download Digital Credential
801+ </ Button >
802+ ) : null }
796803 < Button
797804 variant = "bordered"
798805 startIcon = { < RiShareLine /> }
0 commit comments