diff --git a/package-lock.json b/package-lock.json index 4ebd2ac18..c9c999974 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "i18next": "^25.7.3", "react-aria": "^3.44.0", "react-aria-components": "1.13.0", - "react-error-boundary": "^6.0.0", + "react-error-boundary": "^6.0.1", "react-hook-form": "^7.69.0", "react-i18next": "^16.5.1", "react-robot": "^1.2.0", @@ -16022,15 +16022,13 @@ } }, "node_modules/react-error-boundary": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.0.0.tgz", - "integrity": "sha512-gdlJjD7NWr0IfkPlaREN2d9uUZUlksrfOx7SX62VRerwXbMY6ftGCIZua1VG1aXFNOimhISsTq+Owp725b9SiA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.0.1.tgz", + "integrity": "sha512-zArgQpjJUN1ZLMEKWtifxQweW3yfvwL5j2nh3Pesze1qG6r5oCDMy/TA97bUF01wy4xCeeL4/pd8GHmvEsP3Bg==", "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, "peerDependencies": { - "react": ">=16.13.1" + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" } }, "node_modules/react-hook-form": { diff --git a/package.json b/package.json index 2dd391a4b..8b5795229 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ "i18next": "^25.7.3", "react-aria": "^3.44.0", "react-aria-components": "1.13.0", - "react-error-boundary": "^6.0.0", + "react-error-boundary": "^6.0.1", "react-hook-form": "^7.69.0", "react-i18next": "^16.5.1", "react-robot": "^1.2.0", diff --git a/src/components/Payroll/PayrollOverview/PayrollOverview.tsx b/src/components/Payroll/PayrollOverview/PayrollOverview.tsx index 77996ee62..3386ef958 100644 --- a/src/components/Payroll/PayrollOverview/PayrollOverview.tsx +++ b/src/components/Payroll/PayrollOverview/PayrollOverview.tsx @@ -294,7 +294,7 @@ export const Root = ({ if (newWindow) { newWindow.close() } - showBoundary(err) + showBoundary(err instanceof Error ? err : new Error(String(err))) } } const onSubmit = async () => {