Commit 93a9788
committed
refactor(predict): extract user trait setting into dedicated method
- Create private setPolymarketAccountCreatedTrait() method
- Use .catch() for proper async error handling (fire-and-forget pattern)
- Clean separation of concerns with descriptive method name
- Non-blocking trait setting with error logging to Sentry
- All 169 tests passing1 parent bf1c1bf commit 93a9788
File tree
1 file changed
+27
-21
lines changed- app/components/UI/Predict/providers/polymarket
1 file changed
+27
-21
lines changedLines changed: 27 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1303 | 1329 | | |
1304 | 1330 | | |
1305 | 1331 | | |
| |||
1344 | 1370 | | |
1345 | 1371 | | |
1346 | 1372 | | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
| 1373 | + | |
1368 | 1374 | | |
1369 | 1375 | | |
1370 | 1376 | | |
| |||
0 commit comments