From fd212477ce5ec9ffdecd70c0748bba7ea06066b1 Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Mon, 12 Dec 2022 15:29:43 -0600 Subject: [PATCH] fix: json.stringify addresses (#52) --- src/components/FiatOnrampModal/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/FiatOnrampModal/index.tsx b/src/components/FiatOnrampModal/index.tsx index 35ed3ee4e7..bffa73dfbf 100644 --- a/src/components/FiatOnrampModal/index.tsx +++ b/src/components/FiatOnrampModal/index.tsx @@ -91,12 +91,14 @@ export default function FiatOnrampModal() { colorCode: theme.accentAction, defaultCurrencyCode: 'eth', redirectUrl: 'https://app.uniswap.org/#/swap', - walletAddresses: MOONPAY_SUPPORTED_CURRENCY_CODES.reduce( - (acc, currencyCode) => ({ - ...acc, - [currencyCode]: account, - }), - {} + walletAddresses: JSON.stringify( + MOONPAY_SUPPORTED_CURRENCY_CODES.reduce( + (acc, currencyCode) => ({ + ...acc, + [currencyCode]: account, + }), + {} + ) ), }), })