I can see the current minimum amount is set to $300. I'll update it to $1000 in three places: the validation logic, the placeholder text, and the error message.
Done. I've updated the minimum amount on the bank transfer page from $300 to $1000 in three places: the validation error message, the USD input placeholder, and the converted currency input placeholder. Users will now be required to enter at least $1000 to submit the form.
Image Description: The screenshot shows a disabled input field labeled "المبلغ بـ USD *" with placeholder "الحد الأدنى 1000 USD" and helper text "محسوب تلقائياً" (calculated automatically). This is the right-side auto-calculated field that currently shows the converted currency amount.
Now I have the full picture. The right-side field currently shows the selected currency amount (e.g. USD) auto-calculated. The user wants it to instead show the IQD (dinar) amount auto-calculated, and the label should say "المبلغ بالدينار العراقي" instead of "المبلغ بـ currency". I also need to fix the amount summary which uses amountIQD from state (which is now unused).
Now update the right-side field to show IQD auto-calculated and fix the amount summary:
Now fix the amount summary to use amountInIQD instead of the old amountIQD variable:
Done. The right-side field now shows المبلغ بالدينار العراقي and auto-calculates the IQD amount by multiplying the entered USD/EUR/CNY amount by the current exchange rate for the selected currency. The helper text dynamically shows the rate used (e.g. "محسوب تلقائياً بسعر 1320 دينار لكل USD"), and the amount summary also updates accordingly.
The logs show a Fast Refresh runtime error on the bank transfer page. Let me check for any remaining references to the old amountIQD state field that was removed:
I found the issue - the TransactionReceipt component still references formData.amountIQD which is now an empty string in state since we're calculating it dynamically. I need to fix these references:
The runtime error was caused by the TransactionReceipt component receiving formData.amountIQD (an empty string) where it expected a numeric value, and the parseFloat of an empty string returning NaN. I've fixed both references to use amountInIQD (the auto-calculated dinar amount) and totalAmount (which includes the 2% service fee) instead.
You can send messages while the preview loads