diff --git a/packages/frontend/src/components/projects/create/Deploy.tsx b/packages/frontend/src/components/projects/create/Deploy.tsx index 4fb25c69..9acfdff8 100644 --- a/packages/frontend/src/components/projects/create/Deploy.tsx +++ b/packages/frontend/src/components/projects/create/Deploy.tsx @@ -51,11 +51,8 @@ const Deploy = () => { return true; } - if ( - record.lastState === 'CANCELLED' || - record.lastState === 'REMOVED' || - record.lastState === 'ERROR' - ) { + // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status + if (record.lastState === 'CANCELLED' || record.lastState === 'ERROR') { return false; } else { return true; @@ -67,9 +64,9 @@ const Deploy = () => { return true; } + // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status if ( record.lastState === 'CANCELLED' || - record.lastState === 'REMOVED' || record.lastState === 'ERROR' || record.lastState === 'DEPLOYED' ) {