Skip to content

Commit

Permalink
fix(@vkontakte/vk-bridge-react): rm check if adaptivity is exist (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
inomdzhon authored Oct 24, 2023
1 parent dfe7de3 commit 4209d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/hooks/useAdaptivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4209d65

Please sign in to comment.