fix: clean up donate-saga error (#45435)
* fix: clean donate-saga error Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -315,6 +315,7 @@
|
|||||||
"additional": "You can make an additional one-time donation of any amount using this link: <0>{{url}}</0>",
|
"additional": "You can make an additional one-time donation of any amount using this link: <0>{{url}}</0>",
|
||||||
"help-more": "Help us do more",
|
"help-more": "Help us do more",
|
||||||
"error": "Something went wrong with your donation.",
|
"error": "Something went wrong with your donation.",
|
||||||
|
"error-2": "Something is not right. Please contact donors@freecodecamp.org",
|
||||||
"free-tech": "Your donations will support free technology education for people all over the world.",
|
"free-tech": "Your donations will support free technology education for people all over the world.",
|
||||||
"no-halo": "If you don't see a gold halo around your profile picture, contact donors@freecodecamp.org.",
|
"no-halo": "If you don't see a gold halo around your profile picture, contact donors@freecodecamp.org.",
|
||||||
"gift-frequency": "Select gift frequency:",
|
"gift-frequency": "Select gift frequency:",
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
call,
|
call,
|
||||||
take
|
take
|
||||||
} from 'redux-saga/effects';
|
} from 'redux-saga/effects';
|
||||||
|
import i18next from 'i18next';
|
||||||
import { fireConfetti } from '../utils/fire-confetti';
|
import { fireConfetti } from '../utils/fire-confetti';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -31,7 +32,7 @@ import {
|
|||||||
isAVariantSelector
|
isAVariantSelector
|
||||||
} from './';
|
} from './';
|
||||||
|
|
||||||
const defaultDonationErrorMessage = `Something is not right. Please contact donors@freecodecamp.org`;
|
const defaultDonationErrorMessage = i18next.t('donate.error-2');
|
||||||
|
|
||||||
function* showDonateModalSaga() {
|
function* showDonateModalSaga() {
|
||||||
let shouldRequestDonation = yield select(shouldRequestDonationSelector);
|
let shouldRequestDonation = yield select(shouldRequestDonationSelector);
|
||||||
|
Reference in New Issue
Block a user