fixed default value warning

This commit is contained in:
Erik Jan de Wit 2021-06-23 13:36:10 +02:00
parent 125fd1fe3d
commit 0dc7a3ca5f
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ export const LocalizationTab = ({
<Controller
name="internationalizationEnabled"
control={control}
defaultValue={realm?.internationalizationEnabled}
defaultValue={false}
render={({ onChange, value }) => (
<Switch
id="kc-l-internationalization"

View file

@ -244,7 +244,7 @@ export const RealmSettingsThemesTab = ({
<Controller
name="internationalizationEnabled"
control={control}
defaultValue={internationalizationEnabled}
defaultValue={false}
render={({ onChange, value }) => (
<Switch
id="kc-t-internationalization"