Skip to content

Commit

Permalink
jiji
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Nov 14, 2023
1 parent 30f3c85 commit 46c34c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/components/creator/Editor/CreatorViewMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export const CreatorViewMode = () => {
const challengeExists = LocalStorage.getCreatorChallenge()

useEffect(() => {
if (!challengeExists) {
navigate('/creador/seleccionar')
}
if (!challengeExists) navigate('/creador/seleccionar')
}, [])

return (<>
Expand Down
4 changes: 1 addition & 3 deletions src/components/creator/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export const CreatorEditor = () => {
const challengeExists = LocalStorage.getCreatorChallenge()

useEffect(() => {
if (!challengeExists) {
navigate('/creador/seleccionar')
}
if (!challengeExists) navigate('/creador/seleccionar')
}, [])

return (
Expand Down

0 comments on commit 46c34c1

Please sign in to comment.