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:
parent
ee91767ce9
commit
63184db15a
1 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue