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