diff --git a/src/app/(main)/funds_transfer/page.tsx b/src/app/(main)/funds_transfer/page.tsx index ad242df..ccecf7d 100644 --- a/src/app/(main)/funds_transfer/page.tsx +++ b/src/app/(main)/funds_transfer/page.tsx @@ -150,7 +150,7 @@ export default function QuickPay() { }; async function handleProceed() { - if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount || !remarks) { + if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount ) { notifications.show({ title: "Validation Error", message: "Please fill all required fields", @@ -258,6 +258,17 @@ export default function QuickPay() { color: "red", }); } finally { + setSelectedAccNo(null); + setBeneficiaryAcc(''); + setBeneficiaryName(''); + setConfirmBeneficiaryAcc(''); + setBeneficiaryType(null); + setAmount(''); + setRemarks(''); + setIsVisibilityLocked(false); + setIsSubmitting(false); + setShowTxnPassword(false); + setShowOtpField(false); setIsSubmitting(false); } }; @@ -401,7 +412,7 @@ export default function QuickPay() { placeholder="Enter remarks" value={remarks} onChange={(e) => setRemarks(e.currentTarget.value)} - withAsterisk + // withAsterisk readOnly={showOtpField} /> diff --git a/src/app/(main)/funds_transfer/send_beneficiary/page.tsx b/src/app/(main)/funds_transfer/send_beneficiary/page.tsx index 650b8fe..a18a8c7 100644 --- a/src/app/(main)/funds_transfer/send_beneficiary/page.tsx +++ b/src/app/(main)/funds_transfer/send_beneficiary/page.tsx @@ -14,7 +14,7 @@ interface accountData { custname: string; } - export const MockBeneficiaryData = +export const MockBeneficiaryData = [ { 'stBankName': 'Kangra Central Co-operative Bank', @@ -26,6 +26,11 @@ interface accountData { 'stBenAccountNo': '50077742351', 'stBenName': 'RAJAT MAHARANA', }, + { + 'stBankName': 'Kangra Central Co-operative Bank', + 'stBenAccountNo': '20002076570', + 'stBenName': 'Mr. PUSHKAR . SHARMA', + }, { 'stBankName': 'State Bank of India', 'stBenAccountNo': '50077742361', @@ -406,7 +411,7 @@ export default function SendToBeneficiaryOwn() { ) : (