diff --git a/src/storyMap/components/StoryMapsCard.js b/src/storyMap/components/StoryMapsCard.js index 931eb586f..06ac31a50 100644 --- a/src/storyMap/components/StoryMapsCard.js +++ b/src/storyMap/components/StoryMapsCard.js @@ -91,7 +91,7 @@ const StoryMapListItem = props => { [storyMap.membershipInfo.accountMembership] ); - const isPending = useMemo( + const isStoryMapMembershipPending = useMemo( () => accountMembership?.membershipStatus === MEMBERSHIP_STATUS_PENDING, [accountMembership] ); @@ -170,13 +170,13 @@ const StoryMapListItem = props => { Published and not accepted get a view link. Published and accepted get an edit link. */} - {!storyMap.isPublished && isPending ? ( + {!storyMap.isPublished && isStoryMapMembershipPending ? ( storyMap.title ) : ( { spacing={2} > - {isPending ? ( + {isStoryMapMembershipPending ? (