From 4209d65f578348534c59536598faab74c6613e80 Mon Sep 17 00:00:00 2001 From: Inomdzhon Mirdzhamolov Date: Tue, 24 Oct 2023 13:54:57 +0300 Subject: [PATCH] fix(@vkontakte/vk-bridge-react): rm check if adaptivity is exist (#481) --- packages/react/src/hooks/useAdaptivity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/hooks/useAdaptivity.ts b/packages/react/src/hooks/useAdaptivity.ts index 2cd4d46..dfffa07 100644 --- a/packages/react/src/hooks/useAdaptivity.ts +++ b/packages/react/src/hooks/useAdaptivity.ts @@ -26,7 +26,7 @@ export const useAdaptivity = (): UseAdaptivity => { useIsomorphicLayoutEffect(() => { const updateAdaptivity = (data: ParentConfigData) => { - if (!('adaptivity' in data) || !('viewport_width' in data) || !('viewport_height' in data)) { + if (!('viewport_width' in data) || !('viewport_height' in data)) { return; }