Prowlarr/frontend/src/Utilities/Command/isCommandFailed.js
2019-06-11 22:06:43 -04:00

12 lines
276 B
JavaScript

function isCommandFailed(command) {
if (!command) {
return false;
}
return command.status === 'failed' ||
command.status === 'aborted' ||
command.status === 'cancelled' ||
command.status === 'orphaned';
}
export default isCommandFailed;