diff --git a/projects/common/src/utils/region-utils.ts b/projects/common/src/utils/region-utils.ts
index 632a4f1..df03b83 100644
--- a/projects/common/src/utils/region-utils.ts
+++ b/projects/common/src/utils/region-utils.ts
@@ -7,5 +7,9 @@ let regionNames = new Intl.DisplayNames(["en"], { type: "region" });
* @returns the normalized region name
*/
export function normalizedRegionName(region: string) {
- return regionNames.of(region);
+ try {
+ return regionNames.of(region) || region;
+ } catch {
+ return region;
+ }
}
diff --git a/projects/website/src/app/error.tsx b/projects/website/src/app/error.tsx
new file mode 100644
index 0000000..5799d5a
--- /dev/null
+++ b/projects/website/src/app/error.tsx
@@ -0,0 +1,26 @@
+"use client"; // Error components must be Client Components
+
+import { GlobeAmericasIcon } from "@heroicons/react/24/solid";
+import Link from "next/link";
+import Card from "@/components/card";
+
+export default function Error({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
+ return (
+
+ We're experiencing some technical difficulties. Please try again later.
+ Error Code: {error.digest}
- We're experiencing some technical difficulties. Please try again later.
- Oops! Something went wrong.
+ Oops! Something went wrong.
-