diff --git a/src/App.tsx b/src/App.tsx index 4663553..558e42b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,7 +16,7 @@ function App() { const handleGetUsersInformation = async () => { await userMutate({}, { onSuccess: (res: any) => { - updateUser(res?.data) + updateUser(res?.data?.user) }, onError: (err: any) => handleError(err) }) diff --git a/src/components/common/button.tsx b/src/components/common/button.tsx index ed1e186..e373ad0 100644 --- a/src/components/common/button.tsx +++ b/src/components/common/button.tsx @@ -14,7 +14,7 @@ type Props = { export const ButtonComponent: FC = ({ title, type = "button", pending = false, theme = "primary", onClick, disable = false, className }) => { return ( -