many improvements

This commit is contained in:
Daniel
2023-07-19 16:39:59 -04:00
parent 8f6dfdd868
commit 7912815c9e
14 changed files with 176 additions and 109 deletions
+2 -4
View File
@@ -23,7 +23,7 @@ export default function ChangePassword({
const [submitLoader, setSubmitLoader] = useState(false);
const { account, updateAccount } = useAccountStore();
const { update } = useSession();
const { update, data } = useSession();
useEffect(() => {
if (
@@ -57,9 +57,7 @@ export default function ChangePassword({
user.name !== account.name
) {
update({
username: user.username,
email: user.email,
name: user.name,
id: data?.user.id,
});
signOut();