diff --git a/src/lib/components/Feedback.svelte b/src/lib/components/Feedback.svelte index b90c34f8..fa0d44b1 100644 --- a/src/lib/components/Feedback.svelte +++ b/src/lib/components/Feedback.svelte @@ -4,22 +4,10 @@ import goodEmoji from '$lib/assets/goodEmoji.svg'; import badEmoji from '$lib/assets/badEmoji.svg'; import veryBadEmoji from '$lib/assets/veryBadEmoji.svg'; - import { userRegion, screenWidth } from '$lib/store'; export let data; let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL; - const usRegion = ['cle1','iad1','pdx1','sfo1']; - - let fastifyURL; - - userRegion.subscribe(value => { - if (usRegion.includes(value)) { - fastifyURL = import.meta.env.VITE_USEAST_FASTIFY_URL; - } else { - fastifyURL = import.meta.env.VITE_EU_FASTIFY_URL; - } - }); let rating = ''; let inputValue = ''; @@ -54,7 +42,7 @@ 'description': inputValue}; - const response = await fetch(fastifyURL+'/feedback', { + const response = await fetch(data?.fastifyURL+'/feedback', { method: 'POST', headers: { "Content-Type": "application/json" @@ -108,7 +96,6 @@ - {#if $screenWidth > 640} @@ -173,76 +160,4 @@ - {:else} - - -
- - -
- - -
- - - -
-

- Your Feedback matters! -

-
- - -
-