From 1c6c300cf6f95a7560515f020f2e8263446f8089 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 20 May 2021 18:56:58 +0300 Subject: [PATCH] updating react hook dependency --- src/components/organisms/Permission.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organisms/Permission.tsx b/src/components/organisms/Permission.tsx index d0febc8e7..266414676 100644 --- a/src/components/organisms/Permission.tsx +++ b/src/components/organisms/Permission.tsx @@ -16,7 +16,7 @@ export default function Permission({ updateData(data) } getData() - }, []) + }, [eventType]) console.log('eventType', eventType) if (data === false) { const message = `Sorry, you don't have permission to ${eventType}. Please make sure you are logged in.`