Skip to content

Commit

Permalink
segment case, subject avatar upload bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Aug 20, 2023
1 parent ed4d8ef commit 7ce4277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(account)/subjects/_components/subject-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const SubjectForm = ({ subject }: SubjectFormProps) => {

await uploadSubjectAvatar({
avatar: values.avatar,
subjectId: values.id,
subjectId: subjectData.id,
supabase,
});

Expand Down
2 changes: 1 addition & 1 deletion app/_components/crisp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Crisp = ({ crispSignature, user }: CrispProviderProps) => {
C.user.setEmail(user.email as string, crispSignature);
const meta = user.user_metadata;
C.user.setNickname(`${meta.first_name} ${meta.last_name}`);
C.session.setSegments([meta.is_client ? 'Client' : 'Consultant'], true);
C.session.setSegments([meta.is_client ? 'client' : 'consultant'], true);
C.load();
}, [crispSignature, user]);

Expand Down

0 comments on commit 7ce4277

Please sign in to comment.