Commit 840ca00
committed
fix(mimoquage): fall back when profile.get throws
revu-bot review on #3253: if the profile row is missing (brand new user,
deleted profile…), `api.profile.get()` throws and the whole mon-espace
page 500s. Catch the rejection and keep rendering with `userPhone=null`,
matching the pre-existing behavior — the missing-info modal will prompt
for a phone number just like before.1 parent 9672efd commit 840ca00
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
0 commit comments