mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
emit download errors
This commit is contained in:
@@ -33,9 +33,8 @@ export default class ProgressBar extends React.Component<IProps, IState> {
|
||||
total: prog?.total || 0,
|
||||
})
|
||||
|
||||
if (this.state.status === 'finished' /* || this.state.status === 'error' */) {
|
||||
if (this.state.status === 'finished' || this.state.status === 'error') {
|
||||
// Ensure progress is 100%
|
||||
|
||||
clearInterval(intv)
|
||||
}
|
||||
}, 500)
|
||||
|
||||
Reference in New Issue
Block a user