fix estimate table to view details redirect

This commit is contained in:
Casey 2025-12-23 09:09:13 -06:00
parent 9de586cf3c
commit 49840b6c38

View file

@ -175,7 +175,7 @@ const tableActions = [
{ {
label: "View Details", label: "View Details",
action: (rowData) => { action: (rowData) => {
router.push(`/estimate?address=${encodeURIComponent(rowData.address)}`); router.push(`/estimate?name=${encodeURIComponent(rowData.id)}`);
}, },
type: "button", type: "button",
style: "info", style: "info",
@ -189,8 +189,8 @@ const tableActions = [
]; ];
const handleEstimateClick = (status, rowData) => { const handleEstimateClick = (status, rowData) => {
// Navigate to estimate details page with the address // Navigate to estimate details page with the name
router.push(`/estimate?address=${encodeURIComponent(rowData.address)}`); router.push(`/estimate?name=${encodeURIComponent(rowData.name)}`);
}; };
const closeSubmitEstimateModal = () => { const closeSubmitEstimateModal = () => {