Skip to content

Commit

Permalink
correccion - crear componente fullscreen message
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Morales committed Mar 7, 2024
1 parent ccc0f5c commit 4eab0b5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/FullScreenMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ const FullScreenMessage: FC<Props> = ({
});

useEffect(() => {
setTimeout(() => {
onEndDuration();
}, duration);
if (isVisible) {
setTimeout(() => {
onEndDuration();
}, duration);
}

// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [isVisible]);

return (
<Modal visible={isVisible} animationType={animationType} transparent {...props}>
Expand Down

0 comments on commit 4eab0b5

Please sign in to comment.