Commit 539553c
committed
refactor: reduce nesting in RegistrationForm submit flow
- extract language edge mapping to getLanguagesSpokenAtHomeEdges
- replace inline nested map in updateProfile payload construction
- address Sonar rule S2004 (excessive function nesting)
Refs: KK-15211 parent 5a2c5ea commit 539553c
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | | - | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
0 commit comments