Skip to content

Commit

Permalink
Update use-metatags.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Dec 22, 2024
1 parent 80b7706 commit 857f60b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/web/ui/modals/link-builder/use-metatags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export function useMetatags({
const [generatingMetatags, setGeneratingMetatags] = useState(initial);

useEffect(() => {
// if proxy is enabled, no need to generate metatags
if (proxy) {
setGeneratingMetatags(false);
return;
}

// if there's a password, no need to generate metatags
if (password) {
setGeneratingMetatags(false);
Expand Down

0 comments on commit 857f60b

Please sign in to comment.