Skip to content

Commit

Permalink
Add email:string to ZetkinUser
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycatalinismith committed Nov 12, 2023
1 parent 0aed964 commit a4a725a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions integrationTesting/mockData/users/RosaLuxemburgUser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ZetkinUser } from 'utils/types/zetkin';

const RosaLuxemburgUser: ZetkinUser = {
email: '[email protected]',
first_name: 'Rosa',
id: 1,
lang: null,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/o/[orgId]/surveys/[surveyId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const Page: FC<PageProps> = ({ orgId, surveyId }) => {
<Msg
id={messageIds.surveyForm.authenticatedOption}
values={{
email: '', // currentUser?.email,
email: currentUser?.email ?? '',
person: currentUser?.first_name ?? '',
}}
/>
Expand Down
1 change: 1 addition & 0 deletions src/utils/types/zetkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export interface ZetkinUser {
lang: string | null;
last_name: string;
username: string;
email: string;
}

export interface ZetkinOrganization {
Expand Down

0 comments on commit a4a725a

Please sign in to comment.