Skip to content

Commit 3fb3758

Browse files
committed
wind-down: show friendly message for SIGNUP_DISABLED error in attached
1 parent 85639e3 commit 3fb3758

1 file changed

Lines changed: 25 additions & 8 deletions

File tree

embed/oko_attached/src/components/modal_variants/error/error_modal.tsx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,32 @@ export const ErrorModal: FC<ErrorModalProps> = ({ error }) => {
7676
<Spacing height={16} />
7777

7878
<div className={styles.errorMessageContainer}>
79-
{errorCode && (
80-
<Typography size="sm" weight="semibold" color="warning-primary">
81-
Error Code: {errorCode}
82-
</Typography>
83-
)}
84-
{errorMessage && (
85-
<Typography size="sm" weight="semibold" color="warning-primary">
86-
{errorMessage}
79+
{errorCode === "SIGNUP_DISABLED" ? (
80+
<Typography size="sm" weight="medium" color="primary">
81+
Oko is shutting down on June 1, 2026. New wallet creation is no
82+
longer available.
8783
</Typography>
84+
) : (
85+
<>
86+
{errorCode && (
87+
<Typography
88+
size="sm"
89+
weight="semibold"
90+
color="warning-primary"
91+
>
92+
Error Code: {errorCode}
93+
</Typography>
94+
)}
95+
{errorMessage && (
96+
<Typography
97+
size="sm"
98+
weight="semibold"
99+
color="warning-primary"
100+
>
101+
{errorMessage}
102+
</Typography>
103+
)}
104+
</>
88105
)}
89106
</div>
90107

0 commit comments

Comments
 (0)