Skip to content

Commit

Permalink
fix: hasShareIntent boolean (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
achorein committed Mar 15, 2024
1 parent 5f2e517 commit 8d770f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useShareIntent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function useShareIntent(
}, []);

return {
hasShareIntent: shareIntent?.text || shareIntent?.files,
hasShareIntent: !!(shareIntent?.text || shareIntent?.files),
shareIntent,
resetShareIntent,
error,
Expand Down

0 comments on commit 8d770f1

Please sign in to comment.