@@ -140,11 +140,13 @@ const CertificateFixed = forwardRef<HTMLDivElement, Props>(
140140
141141 < div style = { { flex : 1 , display : 'flex' , flexDirection : 'column' , alignItems : 'center' , justifyContent : 'center' , textAlign : 'center' , padding : '34px 0' , borderBottom : '2px solid #C4A882' } } >
142142 < p style = { { ...labelStyle , margin : '0 0 14px 0' , fontSize : '16px' } } > CAUSE OF DEATH</ p >
143- < div style = { { border : '3px solid rgba(139,26,26,0.65)' , padding : '5px 18px' , marginBottom : '18px' , background : 'rgba(139,26,26,0.04)' } } >
144- < span style = { { fontFamily : MONO , fontSize : '12px' , fontWeight : 700 , letterSpacing : '0.22em' , textTransform : 'uppercase' , color : 'rgba(139,26,26,0.80)' } } >
145- { cert . deathLabel }
146- </ span >
147- </ div >
143+ { cert . deathLabel !== 'too soon to tell' && (
144+ < div style = { { border : '3px solid rgba(139,26,26,0.65)' , padding : '5px 18px' , marginBottom : '18px' , background : 'rgba(139,26,26,0.04)' } } >
145+ < span style = { { fontFamily : MONO , fontSize : '12px' , fontWeight : 700 , letterSpacing : '0.22em' , textTransform : 'uppercase' , color : 'rgba(139,26,26,0.80)' } } >
146+ { cert . deathLabel }
147+ </ span >
148+ </ div >
149+ ) }
148150 < p style = { { fontFamily : UI , fontStyle : 'italic' , fontWeight : 600 , fontSize : '36px' , color : '#8B0000' , lineHeight : 1.35 , maxWidth : '560px' , margin : '0' } } >
149151 { cert . causeOfDeath }
150152 </ p >
0 commit comments