Align client-side validation error popup content and condition with specifications

This commit is contained in:
antv
2026-07-15 22:39:42 +07:00
parent 12196570e8
commit b59c71aaef
+3 -3
View File
@@ -461,9 +461,9 @@ document.addEventListener('DOMContentLoaded', function() {
const msnv = document.getElementById('receiver').value;
const amount = parseInt(document.getElementById('amount').value, 10);
if (userCard < 0 || userFlagSend === 0) {
showModal('Lỗi gửi thẻ',
'Bạn không đủ điều kiện gửi thẻ (Số thẻ < 0 hoặc quyền gửi thẻ bị khóa). Vui lòng liên hệ Admin để được cấp thêm.',
if (userCard < amount || userFlagSend === 0) {
showModal('Thông báo',
"Bạn không thể gửi Thank Card.\nCó thể bạn đã sử dụng hết số lượng Thank Card hoặc chưa được cấp quyền gửi. Vui lòng liên hệ Admin để được hỗ trợ.",
false);
return;
}