Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

small change

Daniel52159d8cde1c
diff --git a/lib/client/getInitialData.ts b/lib/client/getInitialData.ts
index 15fd355e..a0acd6e6 100644
--- a/lib/client/getInitialData.ts
+++ b/lib/client/getInitialData.ts
@@ -22,7 +22,7 @@ export default function () {
setCollections();
setTags();
setLinks();
- setAccount(data.user.email as string, data.user.id);
+ setAccount(data.user.email as string);
}
}, [status]);
}
diff --git a/store/account.ts b/store/account.ts
index 3358ce67..dce5dde5 100644
--- a/store/account.ts
+++ b/store/account.ts
@@ -9,13 +9,13 @@ import { AccountSettings } from "@/types/global";
type AccountStore = {
account: User;
- setAccount: (email: string, id: number) => void;
+ setAccount: (email: string) => void;
updateAccount: (user: AccountSettings) => Promise<boolean>;
};
const useAccountStore = create<AccountStore>()((set) => ({
account: {} as User,
- setAccount: async (email, id) => {
+ setAccount: async (email) => {
const response = await fetch(`/api/routes/users?email=${email}`);
const data = await response.json();