Skip to content

Commit

Permalink
fix(fe): move to management from settings (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
jihorobert authored Aug 26, 2024
1 parent 1988ba9 commit d595421
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions apps/frontend/app/(main)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import invisible from '@/public/24_invisible.svg'
import visible from '@/public/24_visible.svg'
import codedangSymbol from '@/public/codedang-editor.svg'
import { zodResolver } from '@hookform/resolvers/zod'
import type { Route } from 'next'
import type { NavigateOptions } from 'next/dist/shared/lib/app-router-context.shared-runtime'
import Image from 'next/image'
import { useRouter } from 'next/navigation'
Expand Down Expand Up @@ -163,15 +164,7 @@ export default function Page() {
)
// Error occurs if I just put 'href' without 'href === ...' code..
if (isConfirmed) {
if (
href === '/settings' ||
href === '/notice' ||
href === '/problem' ||
href === '/contest' ||
href === '/'
) {
originalPush(href, options)
}
originalPush(href as Route, options)
}
}
router.push = newPush
Expand Down

0 comments on commit d595421

Please sign in to comment.