Commit cecb3d4
committed
refactor(dashboard): Extract inline setValuesForUpdate to named function
Extract the inline arrow in setValuesForUpdate to a standalone
mapOrderAddressToFormValues() function, matching the codebase pattern
used in customers/components/customer-address-form.tsx. Also uses ||
instead of ?? for consistency with the existing mapAddressToFormValues.1 parent 3a5c714 commit cecb3d4
1 file changed
Lines changed: 19 additions & 15 deletions
File tree
- packages/dashboard/src/app/routes/_authenticated/_orders/components
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 146 | + | |
161 | 147 | | |
162 | 148 | | |
163 | 149 | | |
| |||
173 | 159 | | |
174 | 160 | | |
175 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| |||
0 commit comments