diff --git a/app/browser/api/ledger.js b/app/browser/api/ledger.js index 352a28fe14c..5c2d5995e57 100644 --- a/app/browser/api/ledger.js +++ b/app/browser/api/ledger.js @@ -1797,12 +1797,11 @@ const initialize = (state, paymentsEnabled) => { const getContributionAmount = () => { let amount = parseInt(getSetting(settings.PAYMENTS_CONTRIBUTION_AMOUNT), 10) - // if amount is 5, 10, 15, or 20... the amount wasn't updated when changing + // if amount is 5, 15, or 20... the amount wasn't updated when changing // from BTC to BAT (see https://github.com/brave/browser-laptop/issues/11719) let updatedAmount switch (amount) { case 5: updatedAmount = 25; break - case 10: updatedAmount = 50; break case 15: updatedAmount = 75; break case 20: updatedAmount = 100; break } diff --git a/app/renderer/components/preferences/payment/enabledContent.js b/app/renderer/components/preferences/payment/enabledContent.js index d5f7975d405..a82bbe72810 100644 --- a/app/renderer/components/preferences/payment/enabledContent.js +++ b/app/renderer/components/preferences/payment/enabledContent.js @@ -308,7 +308,7 @@ class EnabledContent extends ImmutableComponent { value={getSetting(settings.PAYMENTS_CONTRIBUTION_AMOUNT, this.props.settings)} onChange={changeSetting.bind(null, this.props.onChangeSetting, settings.PAYMENTS_CONTRIBUTION_AMOUNT)}> { - [25, 50, 75, 100].map((amount) => { + [10, 25, 50, 75, 100].map((amount) => { let alternative = '' if (ledgerData.has('currentRate')) { const converted = batToCurrencyString(amount, ledgerData) diff --git a/test/unit/app/browser/api/ledgerTest.js b/test/unit/app/browser/api/ledgerTest.js index 5182e2598a4..85fc8d706a3 100644 --- a/test/unit/app/browser/api/ledgerTest.js +++ b/test/unit/app/browser/api/ledgerTest.js @@ -290,20 +290,6 @@ describe('ledger api unit tests', function () { assert(onChangeSettingSpy.withArgs(settings.PAYMENTS_CONTRIBUTION_AMOUNT, 25).calledOnce) }) }) - describe('when set to 10 USD', function () { - before(function () { - setPaymentInfoSpy.reset() - onChangeSettingSpy.reset() - contributionAmount = 10 - ledgerApi.onInitRead(defaultAppState, parsedLedgerData) - }) - it('converts to 50 BAT', function () { - assert(setPaymentInfoSpy.withArgs(50).calledOnce) - }) - it('updates the setting', function () { - assert(onChangeSettingSpy.withArgs(settings.PAYMENTS_CONTRIBUTION_AMOUNT, 50).calledOnce) - }) - }) describe('when set to 15 USD', function () { before(function () { setPaymentInfoSpy.reset()