Align client-side validation error popup content and condition with specifications
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user