Skip to content

Commit

Permalink
Merge pull request #1639 from zetkin/survey-user-email
Browse files Browse the repository at this point in the history
Add email:string to ZetkinUser
  • Loading branch information
henrycatalinismith authored Nov 12, 2023
2 parents 3b95618 + a4a725a commit 5e5fe7f
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 @@ -211,7 +211,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 5e5fe7f

Please sign in to comment.