fix(frontend): provided href invalid error

This commit is contained in:
이강준
2022-12-27 15:59:11 +09:00
parent cfea0dc66f
commit 76da449463
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const App = ({ Component, pageProps, ...appProps }) => {
useEffect(() => {
const storedLang = localStorage.getItem("lang");
if (router.locale ?? "en" !== storedLang ?? "en") {
router.push(router.pathname, router.pathname, {
router.push(router.asPath, router.asPath, {
locale: storedLang ?? "en",
});
}