Skip to content

Commit

Permalink
Hardcode English for Venmo overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
nbierdeman committed Nov 3, 2023
1 parent 15a78d9 commit 43ffedd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/zoid/checkout/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export function getCheckoutComponent(): CheckoutComponent {
fundingSource,
} = props;
const isVenmo = fundingSource === FUNDING.VENMO;
const brand = isVenmo ? "Venmo" : "PayPal";
const content = containerContent(brand.toLowerCase())[lang];
const browserLanguage = isVenmo ? "en" : lang;
const content = containerContent(fundingSource)[browserLanguage];
if (isVenmo) {
return (
<VenmoOverlay
Expand Down
7 changes: 2 additions & 5 deletions src/zoid/venmo/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ export function getVenmoCheckoutComponent(): VenmoCheckoutComponent {
prerenderFrame,
props,
}) => {
const {
nonce,
locale: { lang },
} = props;
const content = containerContent("Venmo")[lang];
const { nonce } = props;
const content = containerContent("venmo")["en"];

Check failure on line 78 in src/zoid/venmo/component.jsx

View workflow job for this annotation

GitHub Actions / main

["en"] is better written in dot notation
return (
<VenmoOverlay
context={context}
Expand Down

0 comments on commit 43ffedd

Please sign in to comment.