Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (download?.get('isDownloading')) {
const avgSpeed = download.get('avgSpeed')
return (
<div>
<div>
<div style="{{">
</div>
{avgSpeed ? (
<div>
{prettyBytes(avgSpeed)}/s
</div>
) : (
<div>
starting...
</div>
)}
</div>
)
}
return (
</div>