Merge pull request #202 from tloncorp/hm/show-disconnect-reason

app-search: show connection issues when finished
This commit is contained in:
Patrick O'Sullivan 2023-06-29 11:30:12 -05:00 committed by GitHub
commit fb9be7727d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@ function getCompletedText(status: ConnectionCompleteStatus, ship: string) {
case 'no-sponsor-hit':
return `${ship}'s sponsor can reach them, but we can't`;
default:
return 'Unable to connect';
return `Unable to connect to ${ship}`;
}
}

View File

@ -137,8 +137,7 @@ export const Apps = () => {
))}
{status === 'error' && (
<h2>
Unable to connect to{' '}
<ShipName name={provider} className="font-mono" />
<ShipConnection ship={provider} status={connection?.status} />
</h2>
)}
</div>