Skip to content

Commit

Permalink
Bug fix: don't disable button after it's clicked (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgutierrez authored Nov 29, 2023
2 parents f690a63 + 7d5a1d3 commit 623694e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/components/post/post-item/PostPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ const PostPage = () => {
if (shouldDisableShareButton) {
return; // Exit early if sharing is disabled
}

setIsShareButtonDisabled(true);

setIsShareModalOpen(true);
setSharedPost(post);
};
Expand Down

0 comments on commit 623694e

Please sign in to comment.