Skip to content

Commit

Permalink
fix: rename isPending to isStoryMapMembershipPending
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Apr 10, 2024
1 parent 1f31c37 commit 03cbb92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/storyMap/components/StoryMapsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const StoryMapListItem = props => {
[storyMap.membershipInfo.accountMembership]
);

const isPending = useMemo(
const isStoryMapMembershipPending = useMemo(
() => accountMembership?.membershipStatus === MEMBERSHIP_STATUS_PENDING,
[accountMembership]
);
Expand Down Expand Up @@ -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
) : (
<RouterLink
id={`story-map-${storyMap.slug}-link`}
to={
isPending
isStoryMapMembershipPending
? generateStoryMapUrl(storyMap)
: generateStoryMapEditUrl(storyMap)
}
Expand Down Expand Up @@ -208,7 +208,7 @@ const StoryMapListItem = props => {
spacing={2}
>
<Grid item xs={6}>
{isPending ? (
{isStoryMapMembershipPending ? (
<LoadingButton
size="small"
variant="outlined"
Expand Down

0 comments on commit 03cbb92

Please sign in to comment.