nfx-ui 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,12 +4,12 @@ import { ProfileKindEnum } from "nfx-ui/enums";
4
4
 
5
5
  export function pickProfile(
6
6
  kind: ProfileKindEnum,
7
- data: Nilable<Profile.Response.FullAccountInformationWithForgerProfile | Profile.Response.FullAccountInformationWithAuthorityProfile>,
7
+ data: Nilable<Profile.Response.FullAccountInformationWithCommunityProfile | Profile.Response.FullAccountInformationWithAuthorityProfile>,
8
8
  ): Nullable<Profile.Response.ProfileBase> {
9
9
  if (!data) return null;
10
10
  return kind === ProfileKindEnum.AUTHORITY
11
11
  ? (data as Profile.Response.FullAccountInformationWithAuthorityProfile).authorityProfile
12
- : (data as Profile.Response.FullAccountInformationWithForgerProfile).forgerProfile;
12
+ : (data as Profile.Response.FullAccountInformationWithCommunityProfile).communityProfile;
13
13
  }
14
14
 
15
15
  function isUuidLike(value: string): boolean {