Commit 7aaceb7
authored
Fix/invoice wallet select v2 (#487)
* fix(invoice): auto-select worker's coinpay wallet when poster creates invoice
Fixes #478. When the poster initiates an invoice on behalf of the worker, the frontend no longer forces the poster to select a CoinPay receiving wallet (which they wouldn't have access to). The backend API now automatically falls back to selecting the worker's CoinPay wallet matching the gig's payment coin.
* fix(invoice): isWorker prop and fuzzy matching
* fix(invoice): correct fuzzy match to use raw gig.payment_coin base1 parent 1518a5e commit 7aaceb7
2 files changed
Lines changed: 46 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 338 | | |
349 | 339 | | |
350 | 340 | | |
| |||
375 | 365 | | |
376 | 366 | | |
377 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
378 | 390 | | |
379 | 391 | | |
380 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
| |||
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
254 | | - | |
255 | | - | |
| 261 | + | |
| 262 | + | |
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
| |||
545 | 552 | | |
546 | 553 | | |
547 | 554 | | |
| 555 | + | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
| |||
580 | 588 | | |
581 | 589 | | |
582 | 590 | | |
| 591 | + | |
583 | 592 | | |
584 | 593 | | |
585 | 594 | | |
| |||
630 | 639 | | |
631 | 640 | | |
632 | 641 | | |
| 642 | + | |
633 | 643 | | |
634 | 644 | | |
635 | 645 | | |
| |||
652 | 662 | | |
653 | 663 | | |
654 | 664 | | |
| 665 | + | |
655 | 666 | | |
656 | 667 | | |
657 | 668 | | |
| |||
844 | 855 | | |
845 | 856 | | |
846 | 857 | | |
847 | | - | |
| 858 | + | |
| 859 | + | |
848 | 860 | | |
849 | 861 | | |
850 | 862 | | |
| |||
906 | 918 | | |
907 | 919 | | |
908 | 920 | | |
909 | | - | |
| 921 | + | |
| 922 | + | |
910 | 923 | | |
911 | 924 | | |
912 | 925 | | |
913 | 926 | | |
914 | 927 | | |
915 | 928 | | |
916 | | - | |
| 929 | + | |
917 | 930 | | |
918 | 931 | | |
919 | 932 | | |
| |||
0 commit comments