fix a bug with updater where manifest might not exist, for whatever reason

pull/98/head
dperolio 2 years ago
parent 6fb7c2c1e6
commit 1d6c8aa784
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -21,20 +21,22 @@ export default memo(props => {
src={`${Protocols.ASSETS}/images/logo.png`} src={`${Protocols.ASSETS}/images/logo.png`}
/> />
) )
: <> : manifest && (
<Icon <>
className='vz-updater-update-icon-badge-wrapper' <Icon
iconClassName='vz-updater-update-icon-badge' className='vz-updater-update-icon-badge-wrapper'
name={toKebabCase(type)} iconClassName='vz-updater-update-icon-badge'
tooltip={toTitleCase(type)} name={toKebabCase(type)}
size='14' tooltip={toTitleCase(type)}
/> size='14'
<LazyImage />
className='vz-updater-update-icon-img-wrapper' <LazyImage
imageClassName='vz-updater-update-icon-img' className='vz-updater-update-icon-img-wrapper'
src={manifest.icon} imageClassName='vz-updater-update-icon-img'
/> src={manifest.icon}
</> />
</>
)
} }
</div> </div>
{updateId === 'vizality' {updateId === 'vizality'

Loading…
Cancel
Save