diff --git a/resources/views/user/send.blade.php b/resources/views/user/send.blade.php index 86af8dd..392683d 100644 --- a/resources/views/user/send.blade.php +++ b/resources/views/user/send.blade.php @@ -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; }