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`}
/>
)
: <>
<Icon
className='vz-updater-update-icon-badge-wrapper'
iconClassName='vz-updater-update-icon-badge'
name={toKebabCase(type)}
tooltip={toTitleCase(type)}
size='14'
/>
<LazyImage
className='vz-updater-update-icon-img-wrapper'
imageClassName='vz-updater-update-icon-img'
src={manifest.icon}
/>
</>
: manifest && (
<>
<Icon
className='vz-updater-update-icon-badge-wrapper'
iconClassName='vz-updater-update-icon-badge'
name={toKebabCase(type)}
tooltip={toTitleCase(type)}
size='14'
/>
<LazyImage
className='vz-updater-update-icon-img-wrapper'
imageClassName='vz-updater-update-icon-img'
src={manifest.icon}
/>
</>
)
}
</div>
{updateId === 'vizality'

Loading…
Cancel
Save