From 06570fa72e1d8d5254508442b72e22da42e97ab8 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Wed, 13 Nov 2024 16:07:12 +0100 Subject: [PATCH] arreglo en fechas --- client/src/app/quotes/hooks/useQuotes.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/app/quotes/hooks/useQuotes.tsx b/client/src/app/quotes/hooks/useQuotes.tsx index 0e34f6d..07065f6 100644 --- a/client/src/app/quotes/hooks/useQuotes.tsx +++ b/client/src/app/quotes/hooks/useQuotes.tsx @@ -133,15 +133,10 @@ export const useQuotes = () => { return useMutation({ mutationKey: keys().data().resource("quotes").action("one").id(id).params().get(), mutationFn: (data) => { - const { date } = data; - return dataSource.updateOne({ resource: "quotes", id, - data: { - ...data, - date: new Date(date).toISOString().slice(0, 10), - }, + data, }); }, onSuccess: () => {