Skip to content

Commit 07c4ce2

Browse files
authored
fix: open new window from declaration confirmation to OPMC (#2129)
1 parent bd81ea2 commit 07c4ce2

File tree

1 file changed

+1
-3
lines changed
  • packages/app/src/app/(default)/index-egapro/declaration/confirmation

1 file changed

+1
-3
lines changed

packages/app/src/app/(default)/index-egapro/declaration/confirmation/page.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ type Props = {
2323
};
2424

2525
const ButtonOpMc = ({ index, siren, year }: Props) => {
26-
const router = useRouter();
27-
2826
if (index === undefined || index > 85) return null;
2927

3028
return (
31-
<Button onClick={() => router.push(`/index-egapro/objectifs-mesures/${siren}/${year}`)}>
29+
<Button onClick={() => window.open(`/index-egapro/objectifs-mesures/${siren}/${year}`, "_blank")}>
3230
{index >= 75
3331
? "Déclarer les objectifs de progression"
3432
: "Déclarer les objectifs de progression et mesures de correction"}

0 commit comments

Comments
 (0)