Commit 3eaaea4
committed
fix: correct field error labels in purchase confirm action
The validateRequired() calls had wrong label strings — each field was
labelled with the PREVIOUS field's name, causing confusing error messages
like 'Nomor WhatsApp wajib diisi' when the Bank Name field was empty.
Before:
bankName: validateRequired('Nomor WhatsApp', bankName)
bankAccountNumber: validateRequired('Nama Bank', bankAccountNumber)
bankAccountName: validateRequired('Nomor Rekening', bankAccountName)
After (matching the form field labels):
bankName: validateRequired('Nama Bank', bankName)
bankAccountNumber: validateRequired('Nomor Rekening', bankAccountNumber)
bankAccountName: validateRequired('Nama Pemilik Rekening', bankAccountName)
All 116 tests pass.1 parent 81528aa commit 3eaaea4
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments