From d391caf122fcdf7ff4a9e227748b9a10242b15d6 Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Thu, 18 Aug 2022 19:25:08 +0530
Subject: added assets and modal

---
 client/src/pages/Update/Agreement/Agreement.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client/src/pages/Update/Agreement/Agreement.jsx')

diff --git a/client/src/pages/Update/Agreement/Agreement.jsx b/client/src/pages/Update/Agreement/Agreement.jsx
index 91dade7..804561b 100644
--- a/client/src/pages/Update/Agreement/Agreement.jsx
+++ b/client/src/pages/Update/Agreement/Agreement.jsx
@@ -13,7 +13,7 @@ import { updateUser } from '../../../services/apiservice'
 
 const Agreement = () => {
   const { userData } = userContext()
-  const updateUse = useMutation(() => updateUser(userData._id, ...userData))
+  const updateUse = useMutation(() => updateUser(userData._id, { ...userData }))
 
   const { t } = useTranslation()
   return (
-- 
cgit 

