Skip to content

Commit

Permalink
fix(useShare): shouldAllowShare logic
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Mar 26, 2024
1 parent 3b91df3 commit 7e4c7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const useShare = (code: Code): UseShareReturnType => {
const [isShareCopied, setShareCopied] = useState(false);

const shouldAllowShare = useMemo(
() => !code?.jsx && !code?.css,
() => Boolean(code?.jsx || code?.css),
[code?.css, code?.jsx]
);

Expand Down

0 comments on commit 7e4c7a1

Please sign in to comment.