From b59c71aaef221a4b6509ad89e0e4efc0c663b735 Mon Sep 17 00:00:00 2001 From: antv Date: Wed, 15 Jul 2026 22:39:42 +0700 Subject: [PATCH] Align client-side validation error popup content and condition with specifications --- resources/views/user/send.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }