Commit 6dbee81
committed
fix(passport): add user-friendly message for 409 error in registerOffchain
Following the ts-immutable-sdk Passport v3 refactoring (commit 240cd2f15,
Dec 8 2025), which introduced stricter validation via toUserImx() during
user registration, we now explicitly handle the 409 Conflict error in
ImxRegisterScript.
When a user is already registered off-chain, the API returns a 409 error with
USER_REGISTRATION_ERROR type. This change detects this specific scenario and
displays a user-friendly message: 'Passport account already registered'.
This ensures the UI tests (test_4_imx_functions) continue to pass and provides
a better user experience when attempting to register an already registered
account.1 parent 251e4f4 commit 6dbee81
File tree
1 file changed
+11
-2
lines changed- src/Packages/Passport/Samples~/SamplesScenesScripts/Scripts/Passport/ImxRegister
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
61 | | - | |
| 70 | + | |
0 commit comments