fix: payment viaVoucherDialog lang.

This commit is contained in:
elforjani3
2021-06-15 15:33:22 +02:00
parent aa21da88b3
commit de2cf8e8f3
4 changed files with 37 additions and 22 deletions

View File

@@ -26,13 +26,10 @@ function PaymentViaLicenseDialogContent({
// #withDialog
closeDialog,
}) {
const history = useHistory();
// Payment via voucher
const {
mutateAsync: paymentViaVoucherMutate,
} = usePaymentByVoucher();
const { mutateAsync: paymentViaVoucherMutate } = usePaymentByVoucher();
// Handle submit.
const handleSubmit = (values, { setSubmitting, setErrors }) => {
@@ -41,7 +38,7 @@ function PaymentViaLicenseDialogContent({
paymentViaVoucherMutate({ ...values })
.then(() => {
Toaster.show({
message: 'Payment has been done successfully.',
message: intl.get('payment_has_been_done_successfully'),
intent: Intent.SUCCESS,
});
return closeDialog('payment-via-voucher');