fix: clean up donate-saga error (#45435)

* fix: clean donate-saga error

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
pull/45444/head
Ahmad Abdolsaheb 2022-03-16 01:11:31 +03:00 committed by GitHub
parent 10efb79643
commit 7b9bc8bb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -315,6 +315,7 @@
"additional": "You can make an additional one-time donation of any amount using this link: <0>{{url}}</0>",
"help-more": "Help us do more",
"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.",
"no-halo": "If you don't see a gold halo around your profile picture, contact donors@freecodecamp.org.",
"gift-frequency": "Select gift frequency:",

View File

@ -7,6 +7,7 @@ import {
call,
take
} from 'redux-saga/effects';
import i18next from 'i18next';
import { fireConfetti } from '../utils/fire-confetti';
import {
@ -31,7 +32,7 @@ import {
isAVariantSelector
} from './';
const defaultDonationErrorMessage = `Something is not right. Please contact donors@freecodecamp.org`;
const defaultDonationErrorMessage = i18next.t('donate.error-2');
function* showDonateModalSaga() {
let shouldRequestDonation = yield select(shouldRequestDonationSelector);