From 6f1ce3847375967558b981c6927ebbf3cd4bc453 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Jun 2021 12:57:16 -0500 Subject: [PATCH] crypto_addresses -> cryptoAddresses --- .../features/crypto_donate/components/crypto_donate_panel.js | 2 +- app/soapbox/features/crypto_donate/components/site_wallet.js | 2 +- app/soapbox/pages/home_page.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js index b63acdad1..68005fac4 100644 --- a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js +++ b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js @@ -9,7 +9,7 @@ import { List as ImmutableList } from 'immutable'; import classNames from 'classnames'; const mapStateToProps = state => { - const addresses = state.getIn(['soapbox', 'crypto_addresses'], ImmutableList()); + const addresses = state.getIn(['soapbox', 'cryptoAddresses'], ImmutableList()); return { total: addresses.size, siteTitle: state.getIn(['instance', 'title']), diff --git a/app/soapbox/features/crypto_donate/components/site_wallet.js b/app/soapbox/features/crypto_donate/components/site_wallet.js index 5e5e3fa69..74edf711c 100644 --- a/app/soapbox/features/crypto_donate/components/site_wallet.js +++ b/app/soapbox/features/crypto_donate/components/site_wallet.js @@ -8,7 +8,7 @@ import CryptoAddress from './crypto_address'; const mapStateToProps = (state, ownProps) => { // Address example: // {"ticker": "btc", "address": "bc1q9cx35adpm73aq2fw40ye6ts8hfxqzjr5unwg0n", "note": "This is our main address"} - const addresses = state.getIn(['soapbox', 'crypto_addresses']); + const addresses = state.getIn(['soapbox', 'cryptoAddresses']); const { limit } = ownProps; return { diff --git a/app/soapbox/pages/home_page.js b/app/soapbox/pages/home_page.js index 435752196..da90bed71 100644 --- a/app/soapbox/pages/home_page.js +++ b/app/soapbox/pages/home_page.js @@ -22,7 +22,7 @@ const mapStateToProps = state => { me, account: state.getIn(['accounts', me]), hasPatron: soapbox.getIn(['extensions', 'patron', 'enabled']), - hasCrypto: typeof soapbox.getIn(['crypto_addresses', 0, 'ticker']) === 'string', + hasCrypto: typeof soapbox.getIn(['cryptoAddresses', 0, 'ticker']) === 'string', cryptoLimit: soapbox.getIn(['cryptoDonatePanel', 'limit']), features: getFeatures(state.get('instance')), };