diff --git a/packages/ui/src/components/sign-up/sign-up.tsx b/packages/ui/src/components/sign-up/sign-up.tsx
index d184c17625..671348ab60 100644
--- a/packages/ui/src/components/sign-up/sign-up.tsx
+++ b/packages/ui/src/components/sign-up/sign-up.tsx
@@ -6,6 +6,7 @@ import { Connections } from '~/common/connections';
import { EmailField } from '~/common/email-field';
import { EmailOrPhoneNumberField } from '~/common/email-or-phone-number-field';
import { FirstNameField } from '~/common/first-name-field';
+import { GlobalError } from '~/common/global-error';
import { LastNameField } from '~/common/last-name-field';
import { OTPField } from '~/common/otp-field';
import { PasswordField } from '~/common/password-field';
@@ -16,7 +17,6 @@ import { useDisplayConfig } from '~/hooks/use-display-config';
import { useEnabledConnections } from '~/hooks/use-enabled-connections';
import { useEnvironment } from '~/hooks/use-environment';
import { useLocalizations } from '~/hooks/use-localizations';
-import { Alert } from '~/primitives/alert';
import { Button } from '~/primitives/button';
import * as Card from '~/primitives/card';
import * as Icon from '~/primitives/icon';
@@ -74,11 +74,7 @@ function SignUpComponentLoaded() {
-
- {({ message }) => {
- return {message};
- }}
-
+
@@ -201,11 +197,7 @@ function SignUpComponentLoaded() {
-
- {({ message }) => {
- return {message};
- }}
-
+
-
- {({ message }) => {
- return {message};
- }}
-
+
-
- {({ message }) => {
- return {message};
- }}
-
+
{t('signUp.continue.subtitle')}
-
- {({ message }) => {
- return {message};
- }}
-
+
diff --git a/packages/ui/src/utils/makeLocalizable.ts b/packages/ui/src/utils/makeLocalizable.ts
index 8024a0065a..53c0b0d620 100644
--- a/packages/ui/src/utils/makeLocalizable.ts
+++ b/packages/ui/src/utils/makeLocalizable.ts
@@ -211,7 +211,7 @@ export const makeLocalizeable = (resource: LocalizationResource) => {
* @example
* translateError('Invalid email address', 'form_param_format_invalid', 'email_address')
*/
- const translateError = (message: string, code: string, name: string) => {
+ const translateError = (message: string, code: string, name?: string) => {
return t(`unstable__errors.${code}__${name}` as any) || t(`unstable__errors.${code}` as any) || message;
};