Hook injects invalid link when no fonts are passed.
kartik-budhiraja opened this issue · 1 comments
kartik-budhiraja commented
Issue
When you pass empty array for fonts, the hook injects https://fonts.googleapis.com/css2?display=swap
in the link
tag.
Expected behaviour
It should not do anything if fonts are empty
I would be happy to open a PR for this if that's fine by @lopezjurip
lopezjurip commented
Hi @kartik-budhiraja, thanks for reporting! Fixed in 3e5e432 and published as 0.4.2