Skip to content

Commit

Permalink
Handle case where restrictedTo doesn't contain number
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Nov 28, 2024
1 parent 18f1a18 commit dff82e7
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,15 @@ export const MembershipConflictResolutionEditor = ({
label={t("membershipDetail.bindingUserError.phoneNumber")}
readOnly={true}
readOnlyColor={colors.gray[500]}
render={() => (
<LakeText variant="regular" color={colors.gray[900]}>
{restrictedTo.phoneNumber}
</LakeText>
)}
render={() =>
restrictedTo.phoneNumber != null ? (
<LakeText variant="regular" color={colors.gray[900]}>
{restrictedTo.phoneNumber}
</LakeText>
) : (
<LakeText>{"—"}</LakeText>
)
}
/>

<LakeLabel
Expand Down

0 comments on commit dff82e7

Please sign in to comment.