0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

fix(console): add dot before protected app first-level domain (#5323)

This commit is contained in:
Charles Zhao 2024-01-29 10:14:35 +08:00 committed by GitHub
parent ee91767ce9
commit 63184db15a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
import { isValidUrl } from '@logto/core-kit';
import { ApplicationType, type Application, type RequestErrorBody } from '@logto/schemas';
import { isValidSubdomain } from '@logto/shared/universal';
import { conditional } from '@silverhand/essentials';
import { condString, conditional } from '@silverhand/essentials';
import classNames from 'classnames';
import { HTTPError } from 'ky';
import { useForm } from 'react-hook-form';
@ -115,7 +115,11 @@ function ProtectedAppForm({
t('protected_app.form.errors.domain_required'))
}
/>
{defaultDomain && <div className={styles.domain}>{defaultDomain}</div>}
{defaultDomain && (
<div className={styles.domain}>
{condString(defaultDomain && `.${defaultDomain}`)}
</div>
)}
</div>
</FormField>
</div>