wip : changes in quick pay

This commit is contained in:
2025-07-22 13:06:02 +05:30
parent e621f10824
commit 532bdfb97a
2 changed files with 20 additions and 4 deletions

View File

@@ -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}
/>
</Group>

View File

@@ -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',