docs: fix logic in feedback

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9624
GitOrigin-RevId: 25a84785d6282b87b4874165177d33f86e632e3f
This commit is contained in:
Rob Dominguez 2023-06-21 10:15:28 -05:00 committed by hasura-bot
parent bf0afdfc0c
commit 587fd20283

View File

@ -53,7 +53,7 @@ export const Feedback = ({ metadata }: { metadata: any }) => {
.catch(error => console.error('error', error));
};
if (window.location.hostname != 'hasura.io' || window.location.hostname != 'stage.hasura.io') {
if (!window.location.hostname.includes('hasura.io')) {
alert(
'Hey! We like that you like our docs and chose to use them 🎉\n\nHowever, you might want to remove the feedback component or modify the route you hit, lest you want us reading what people think of your site ✌️'
);