Skip to content

Commit

Permalink
fix: 튜토리얼 중 로고 클릭 시 url만 바뀌는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daeseong9388 committed Dec 17, 2022
1 parent 7556aa7 commit d139faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/container/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Wrapper = styled.div`

const Header = (): ReactElement => {
const [isTutorial, setIsTutorial] = useAtom(isTutorialAtom);
const url: string = isTutorial ? '/tutorials' : '/';
const [, changeIndexedDBtoMemory] = useAtom(changeIndexedDBtoMemoryAtom);
const [, changeMemorytoIndexedDB] = useAtom(changeMemorytoIndexedDBAtom);
const startTutorial = (): void => {
Expand All @@ -36,7 +37,7 @@ const Header = (): ReactElement => {
};
return (
<Wrapper>
<Link to="/">
<Link to={`${url}`}>
<Image src={LongLogo} flexGrow={3} />
</Link>
{isTutorial ? (
Expand Down

0 comments on commit d139faf

Please sign in to comment.