From 5e95e35d264f04b329e343d72aee41fef1e584c7 Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Wed, 27 May 2026 19:34:22 -0600 Subject: [PATCH] Add IP address validation to CARD confirm/decline/redirect actions Show clear error message when a queue item has no IP address instead of sending null to the backend. Items without IPs cannot be resolved to CARD asset IDs. --- frontend/src/components/pages/ReportingPage.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/components/pages/ReportingPage.js b/frontend/src/components/pages/ReportingPage.js index 208db42..f4a7e17 100644 --- a/frontend/src/components/pages/ReportingPage.js +++ b/frontend/src/components/pages/ReportingPage.js @@ -1650,6 +1650,10 @@ function QueuePanel({ open, items, onClose, onUpdate, onDelete, onDeleteMany, on const handleCardConfirmDecline = async (item, actionType) => { if (!cardFormTeam) return; + if (!item.ip_address) { + setCardActionError('No IP address on this queue item — cannot resolve CARD asset.'); + return; + } setCardActionLoading(true); setCardActionError(null); try { @@ -1680,6 +1684,10 @@ function QueuePanel({ open, items, onClose, onUpdate, onDelete, onDeleteMany, on const handleCardRedirect = async (item) => { if (!cardFormFromTeam || !cardFormToTeam) return; + if (!item.ip_address) { + setCardActionError('No IP address on this queue item — cannot resolve CARD asset.'); + return; + } setCardActionLoading(true); setCardActionError(null); try {