diff --git a/packages/client/public/locales/en/Payments.json b/packages/client/public/locales/en/Payments.json index fc95f863d1..93153104d5 100644 --- a/packages/client/public/locales/en/Payments.json +++ b/packages/client/public/locales/en/Payments.json @@ -38,7 +38,7 @@ "SendRequest": "Send request", "TotalPricePerMonth": "<1>{{currencySymbol}}<2>{{price}}<3>/month", "UpgradeNow": "Upgrade now", - "UserNotFound": "User <1>«{{email}}» is not found", + "UserNotFound": "User <1>{{email}} is not found", "YourPrice": "Your price", "PaymentOverdue": "Cannot add new users.", "BusinessPlanPaymentOverdue": "Cannot add new users. Business plan payment overdue", diff --git a/packages/client/public/locales/ru/Payments.json b/packages/client/public/locales/ru/Payments.json index 2f352112f5..46622a5a7c 100644 --- a/packages/client/public/locales/ru/Payments.json +++ b/packages/client/public/locales/ru/Payments.json @@ -37,6 +37,6 @@ "SendRequest": "Отправить запрос", "TotalPricePerMonth": "<1>{{currencySymbol}}<2>{{price}}<3>/месяц", "UpgradeNow": "Обновить прямо сейчас", - "UserNotFound": "Пользователь <1>«{{email}}» не найден", + "UserNotFound": "Пользователь <1>{{email}} не найден", "YourPrice": "Ваша стоимость" } diff --git a/packages/client/src/pages/PortalSettings/categories/payments/PayerInformationContainer.js b/packages/client/src/pages/PortalSettings/categories/payments/PayerInformationContainer.js index fcad14e79f..81409289b8 100644 --- a/packages/client/src/pages/PortalSettings/categories/payments/PayerInformationContainer.js +++ b/packages/client/src/pages/PortalSettings/categories/payments/PayerInformationContainer.js @@ -130,25 +130,31 @@ const PayerInformationContainer = ({ ); - const payerName = ( - - {payerInfo ? ( - payerInfo.displayName - ) : ( - - User - - {{ email }} - - is not found - - )} - - ); + const payerName = () => { + let emailUnfoundedUser = email; + + if (email) emailUnfoundedUser = "«" + emailUnfoundedUser + "»"; + + return ( + + {payerInfo ? ( + payerInfo.displayName + ) : ( + + User + + {{ email: emailUnfoundedUser }} + + is not found + + )} + + ); + }; const avatarUrl = payerInfo ? { source: payerInfo.avatar } : {}; @@ -165,7 +171,7 @@ const PayerInformationContainer = ({
- {payerName} + {payerName()} {" (" + t("Payer") + ") "}