Skip to content

Commit

Permalink
Merge pull request #84 from ClioDynamics/signed_tos
Browse files Browse the repository at this point in the history
signed_tos
  • Loading branch information
lalalune authored Mar 7, 2024
2 parents 9c67571 + 2f1f9ce commit ed616b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/app/src/pages/app/TOS/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function Index({}: Props) {
const { classes } = useRootStyles();

const completeAgreement = async () => {
await supabase.from("users").update({ signed_tos: true }).eq("id", user.id);
// Your completeAgreement function logic
};

Expand Down
1 change: 1 addition & 0 deletions packages/app/src/store/useGlobalStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IUser {
uid: string | null
location: string | null
details: Json | null
signed_tos: boolean
}

interface IPreferences {
Expand Down
1 change: 1 addition & 0 deletions packages/app/types/database.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export interface Database {
name?: string | null
location?: string | null
details?: Json | null
signed_tos?: boolean
}
}
}
Expand Down

0 comments on commit ed616b5

Please sign in to comment.