Fix warning related to powerhooks_useGlobalState_kcLanguageTag

This commit is contained in:
garronej
2021-06-12 00:11:56 +02:00
parent 5113a838e7
commit 06f9cd3e68
3 changed files with 18 additions and 6 deletions

View File

@ -10,7 +10,7 @@ const wrap = createUseGlobalState(
kcContext?.locale?.current ??
navigator.language
),
{ "persistance": "cookie" }
{ "persistance": "localStorage" }
);
export const { useKcLanguageTag } = wrap;