Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ship is ready check #2066

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hosting-holium-com/src/pages/upload-pier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
const shipIsReady = async () => {
const ship = await getUnbootedByopShip();
if (!ship) return false;
return ship.ship_type === 'provisional';
return ship.ship_type !== 'provisional';
};

const sftpIsReady = async () => {
const ship = await getUnbootedByopShip();
if (ship && ship.ship_type.includes('dropletReady')) {
const [_status, _pier, password, ipAddress] = ship.ship_type.split('|');

Check warning on line 60 in hosting-holium-com/src/pages/upload-pier.tsx

View workflow job for this annotation

GitHub Actions / Lint

'_status' is assigned a value but never used

Check warning on line 60 in hosting-holium-com/src/pages/upload-pier.tsx

View workflow job for this annotation

GitHub Actions / Lint

'_pier' is assigned a value but never used
setSftpServer({ password, ipAddress });
return true;
}
Expand Down