Skip to content

Commit 071db17

Browse files
authored
Merge pull request #88 from chechojgb/buttonsLovers
fix: correccion boleano
2 parents 4877761 + afd109c commit 071db17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/js/components/BL/tablaMarcacionBL.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { Button, Modal, ModalBody, ModalHeader } from "flowbite-react";
1717
import { HiOutlineExclamationCircle } from "react-icons/hi";
1818

1919
export default function TablaMarcacionBL({itemsPedidos, search}) {
20+
console.log(itemsPedidos);
21+
2022
const [openModal, setOpenModal] = useState(false);
2123
const { props } = usePage();
2224
const [selectedItems, setSelectedItems] = useState([]);
@@ -133,7 +135,7 @@ export default function TablaMarcacionBL({itemsPedidos, search}) {
133135
`}
134136
>
135137
<option value="pendiente">Pendiente</option>
136-
<option value="en proceso">En proceso</option>
138+
<option value="en_proceso">En proceso</option>
137139
<option value="completado">Completado</option>
138140
</select>
139141
);
@@ -275,7 +277,7 @@ export default function TablaMarcacionBL({itemsPedidos, search}) {
275277
<tbody>
276278
{table.getRowModel().rows.map((row, index) => {
277279
const marcacion = row.original.marcaciones?.[0]; // accede al primer elemento
278-
const estaPagado = marcacion?.pagado === 1;
280+
const estaPagado = marcacion?.pagado === true || marcacion?.pagado === 1;
279281

280282
return (
281283
<tr

0 commit comments

Comments
 (0)