File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
packages/thirdweb/src/react/web/ui Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix purchaseData propagation in PayEmbed component to new widget implementations
Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ export function PayEmbed(props: PayEmbedProps) {
363
363
? [ "card" ]
364
364
: [ "crypto" , "card" ]
365
365
}
366
+ purchaseData = {
367
+ props . payOptions ?. purchaseData as Record < string , unknown > | undefined
368
+ }
366
369
theme = { theme }
367
370
title = { metadata ?. name || "Buy" }
368
371
tokenAddress = {
@@ -387,6 +390,9 @@ export function PayEmbed(props: PayEmbedProps) {
387
390
? [ "crypto" ]
388
391
: [ "crypto" , "card" ]
389
392
}
393
+ purchaseData = {
394
+ props . payOptions ?. purchaseData as Record < string , unknown > | undefined
395
+ }
390
396
seller = { props . payOptions . paymentInfo . sellerAddress as Address }
391
397
theme = { theme }
392
398
tokenAddress = {
@@ -408,6 +414,9 @@ export function PayEmbed(props: PayEmbedProps) {
408
414
? [ "crypto" ]
409
415
: [ "crypto" , "card" ]
410
416
}
417
+ purchaseData = {
418
+ props . payOptions ?. purchaseData as Record < string , unknown > | undefined
419
+ }
411
420
theme = { theme }
412
421
title = { metadata ?. name }
413
422
transaction = { props . payOptions . transaction }
You can’t perform that action at this time.
0 commit comments