From bddaf9413868115f7626c20697b78e560feda24a Mon Sep 17 00:00:00 2001 From: Alexis Moren Date: Tue, 16 Jan 2024 19:12:31 +0100 Subject: [PATCH] 1.1.3 --- package.json | 2 +- src/components/Logout.js | 2 +- src/components/LogoutBtn.js | 2 +- src/screens/Home.js | 4 ---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 94b1bf4..4adf9c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jobibox", - "version": "1.1.2", + "version": "1.1.3", "description": "La cabine accoustique pour créer un cv vidéo", "repository": "https://github.com/EvilSpartans/JobiBox", "main": "main.js", diff --git a/src/components/Logout.js b/src/components/Logout.js index faee2c7..53c78a2 100644 --- a/src/components/Logout.js +++ b/src/components/Logout.js @@ -16,7 +16,7 @@ export default function Logout() { localStorage.removeItem('selectedQuestions'); localStorage.removeItem('selectedTheme'); localStorage.removeItem('selectedMusic'); - // localStorage.removeItem('videoPath'); + localStorage.removeItem('videoPath'); localStorage.removeItem('questionTuto'); localStorage.removeItem('themeTuto'); localStorage.removeItem('musicTuto'); diff --git a/src/components/LogoutBtn.js b/src/components/LogoutBtn.js index bf40e6f..4728f51 100644 --- a/src/components/LogoutBtn.js +++ b/src/components/LogoutBtn.js @@ -16,7 +16,7 @@ export default function LogoutBtn() { localStorage.removeItem('selectedQuestions'); localStorage.removeItem('selectedTheme'); localStorage.removeItem('selectedMusic'); - // localStorage.removeItem('videoPath'); + localStorage.removeItem('videoPath'); localStorage.removeItem('questionTuto'); localStorage.removeItem('themeTuto'); localStorage.removeItem('musicTuto'); diff --git a/src/screens/Home.js b/src/screens/Home.js index 5be1387..7cedd73 100644 --- a/src/screens/Home.js +++ b/src/screens/Home.js @@ -8,7 +8,6 @@ export default function Home() { const navigate = useNavigate(); const user = useSelector((state) => state.user.user); const existingBusiness = localStorage.getItem("businessId"); - const existingvideoPath = localStorage.getItem("videoPath"); // Hidden cmd to reset config const handleKeyDown = useCallback((e) => { @@ -31,9 +30,6 @@ export default function Home() { if (!existingBusiness) { navigate("/config"); } - if (existingvideoPath) { - navigate("/post"); - } }, []); return (