Updated dependencies; fixes some TS issues uncovered by update

This commit is contained in:
gbuomprisco
2024-09-10 10:55:28 +02:00
parent 460479bf1a
commit bc624e7d96
23 changed files with 554 additions and 531 deletions

View File

@@ -39,7 +39,7 @@
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"next-themes": "0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",

View File

@@ -12,7 +12,6 @@ export function usePersonalAccountData(
name: string | null;
picture_url: string | null;
}
| undefined,
) {
const client = useSupabase();
const queryKey = ['account:data', userId];

View File

@@ -26,7 +26,7 @@
"@tanstack/react-table": "^8.20.5",
"@types/react": "^18.3.5",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.53.0",

View File

@@ -32,7 +32,7 @@
"@tanstack/react-query": "5.55.4",
"@types/react": "^18.3.5",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.1",
"sonner": "^1.5.0",

View File

@@ -40,7 +40,7 @@
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"lucide-react": "^0.439.0",
"next": "14.2.8",
"next": "14.2.9",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-hook-form": "^7.53.0",

View File

@@ -223,7 +223,7 @@ export class TeamAccountsApi {
.gte('expires_at', new Date().toISOString())
.single();
if (!invitation ?? error) {
if (error ?? !invitation) {
return null;
}