fix: correct boolean check for orgId error and improve visual separation of github connections

This commit is contained in:
Scott Wilson
2024-10-16 10:42:22 -07:00
parent 080cf67b8c
commit b0fc5c7e27
2 changed files with 6 additions and 1 deletions

View File

@@ -478,7 +478,7 @@ export default function GitHubCreateIntegrationPage() {
errorText={
integrationAuthOrgs?.length ? error?.message : "No organizations found"
}
isError={Boolean(integrationAuthOrgs?.length && error?.message)}
isError={Boolean(integrationAuthOrgs?.length || error?.message)}
>
<Select
value={field.value}

View File

@@ -170,6 +170,11 @@ export default function SelectIntegrationAuthPage() {
);
})
: undefined}
<div className="mt-6 flex w-full flex-row items-center justify-center">
<div className="w-1/5 border-t border-mineshaft-400" />
<p className="mx-4 text-xs text-gray-400">OR</p>
<div className="w-1/5 border-t border-mineshaft-400" />
</div>
<Button
colorSchema="primary"
className="mt-6 w-3/4"