diff --git a/.changeset/fair-masks-attend.md b/.changeset/fair-masks-attend.md new file mode 100644 index 00000000..c8b557c9 --- /dev/null +++ b/.changeset/fair-masks-attend.md @@ -0,0 +1,5 @@ +--- +'@adyen/adyen-web': patch +--- + +Loading the logo images properly when handling qrCode/await actions diff --git a/packages/lib/src/components/UIElement.tsx b/packages/lib/src/components/UIElement.tsx index 9ac139af..79b544d9 100644 --- a/packages/lib/src/components/UIElement.tsx +++ b/packages/lib/src/components/UIElement.tsx @@ -239,7 +239,8 @@ export class UIElement
extends BaseElement
im
* Get the element icon URL for the current environment
*/
get icon(): string {
- return this.props.icon ?? this.resources.getImage()(this.type);
+ const type = this.props.paymentMethodType || this.type;
+ return this.props.icon ?? this.resources.getImage()(type);
}
/**
diff --git a/packages/lib/src/components/internal/QRLoader/QRLoader.tsx b/packages/lib/src/components/internal/QRLoader/QRLoader.tsx
index 41beadb9..6e60be37 100644
--- a/packages/lib/src/components/internal/QRLoader/QRLoader.tsx
+++ b/packages/lib/src/components/internal/QRLoader/QRLoader.tsx
@@ -211,7 +211,7 @@ class QRLoader extends Component