This commit is contained in:
Untone 2024-07-05 11:12:17 +03:00
parent 3433ba0aac
commit 22f45d8bd9
3 changed files with 2 additions and 3 deletions

View File

@ -56,7 +56,7 @@ export const AllAuthors = (props: Props) => {
}) })
const sortedKeys = createMemo<string[]>(() => { const sortedKeys = createMemo<string[]>(() => {
const keys = Object.keys(byLetterFiltered()||{}) const keys = Object.keys(byLetterFiltered() || {})
keys.sort() keys.sort()
const fk = keys.shift() || '' const fk = keys.shift() || ''
fk && keys.push(fk) fk && keys.push(fk)

View File

@ -86,7 +86,7 @@ export const LocalizeProvider = (props: { children: JSX.Element }) => {
t: ((s: string) => { t: ((s: string) => {
try { try {
return i18next.t(s) return i18next.t(s)
} catch(_) { } catch (_) {
return s return s
} }
}) as i18n['t'], }) as i18n['t'],

View File

@ -25,7 +25,6 @@ export const EditSettingsPage = () => {
} }
} }
return ( return (
<PageLayout title={`${t('Discours')} :: ${t('Publication settings')}`}> <PageLayout title={`${t('Discours')} :: ${t('Publication settings')}`}>
<AuthGuard> <AuthGuard>
<EditSettingsView shout={shout() as Shout} /> <EditSettingsView shout={shout() as Shout} />