From ac527f7c24ba86f018cc672f85877ea39444c389 Mon Sep 17 00:00:00 2001 From: Jubal Mabaquiao Date: Tue, 10 Dec 2024 10:59:37 +0800 Subject: [PATCH] only show noaccess message for user denied sites --- app/ts/components/pages/WebsiteAccess.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/ts/components/pages/WebsiteAccess.tsx b/app/ts/components/pages/WebsiteAccess.tsx index a94b12dc..ae58e49b 100644 --- a/app/ts/components/pages/WebsiteAccess.tsx +++ b/app/ts/components/pages/WebsiteAccess.tsx @@ -279,6 +279,9 @@ const NoAccessPrompt = ({ websiteAccess }: { websiteAccess: Signal websiteAccess.value.website) + // If the website has been granted access, don't show this message + if (websiteAccess.value.access === true) return <> + const confirmOrRejectRemoval = async (returnValue: string) => { if (returnValue !== 'confirm' || !websiteAccess.value) return await sendPopupMessageToBackgroundPage({ method: 'popup_removeWebsiteAccess', data: { websiteOrigin: websiteAccess.value.website.websiteOrigin } })