Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

people: Fix get_custom_profile_data type.

Anders Kaseorga5995a69f379
diff --git a/web/src/people.ts b/web/src/people.ts
index b5cbde347ab..0f4ef5a40b0 100644
--- a/web/src/people.ts
+++ b/web/src/people.ts
@@ -1716,7 +1716,10 @@ export function my_custom_profile_data(field_id: number): ProfileData | null | u
return get_custom_profile_data(my_user_id, field_id);
}
-export function get_custom_profile_data(user_id: number, field_id: number): ProfileData | null {
+export function get_custom_profile_data(
+ user_id: number,
+ field_id: number,
+): ProfileData | null | undefined {
const person = get_by_user_id(user_id);
const profile_data = person.profile_data;
if (profile_data === undefined) {