diff --git a/package.json b/package.json index 569b970..4ee0070 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.76.0", + "version": "0.77.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/actions/referralsActions.ts b/src/app/actions/referralsActions.ts index 60964c4..b104b44 100644 --- a/src/app/actions/referralsActions.ts +++ b/src/app/actions/referralsActions.ts @@ -378,6 +378,10 @@ export async function createPayoutRequest( throw JSON.parse(responseText)?.message; } + if (response.status === 409) { + throw 'insufficient-funds-to-receive-payment' + } + if (response.ok) { const parsed = await response.json(); console.log(parsed); @@ -403,6 +407,9 @@ export async function createPayoutRequest( case 'Min sum for pay 1000': typedError = 'min-sum-for-payout-1000'; break; + case 'insufficient-funds-to-receive-payment': + typedError = 'insufficient-funds-to-receive-payment'; + break; default: typedError = 'payment-error'; } diff --git a/src/app/ui/settings/component/verification-upload-section.tsx b/src/app/ui/settings/component/verification-upload-section.tsx index b08c65d..53961b4 100644 --- a/src/app/ui/settings/component/verification-upload-section.tsx +++ b/src/app/ui/settings/component/verification-upload-section.tsx @@ -550,7 +550,7 @@ export default function VerificationUploadSection({ - { +{/* { (fileType === 'image' && file.preview) && (
) - } + } */} { file.status === 'pending' && ( diff --git a/src/app/ui/settings/setting-user-verification.tsx b/src/app/ui/settings/setting-user-verification.tsx index 3d09b9b..08f9614 100644 --- a/src/app/ui/settings/setting-user-verification.tsx +++ b/src/app/ui/settings/setting-user-verification.tsx @@ -16,12 +16,12 @@ export default function SettingUserVerification() { Верификация юзера
- {/* */} -{/* */} diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index 96c1177..029332f 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -389,7 +389,8 @@ "deselect": "Deselect", "select-all": "Select all", "text-area-error-fill-complaint-text": "Fill out the complaint text", - "to-view-a-file-match-click-on-the-card-from-the-list": "To view a file match, click on the card from the list" + "to-view-a-file-match-click-on-the-card-from-the-list": "To view a file match, click on the card from the list", + "insufficient-funds-to-receive-payment": "Insufficient funds to receive payment" }, "Login-register-form": { "and": "and", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 7a2c66f..f6cafc6 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -389,7 +389,8 @@ "deselect": "Снять выделение", "select-all": "Выбрать все", "text-area-error-fill-complaint-text": "Заполните текст жалобы", - "to-view-a-file-match-click-on-the-card-from-the-list": "Для просмотра совпадения по файлу нажмите на карточку из списка" + "to-view-a-file-match-click-on-the-card-from-the-list": "Для просмотра совпадения по файлу нажмите на карточку из списка", + "insufficient-funds-to-receive-payment": "Недостаточно средств получения выплаты" }, "Login-register-form": { "and": "и",