File tree 1 file changed +2
-2
lines changed
packages/floating-install-button/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ const InstallDescription = styled(Text)`
33
33
`
34
34
35
35
const InstallAnchor = styled . a `
36
- &,
37
36
&:visited,
38
37
&:hover,
39
38
&:active {
@@ -84,7 +83,7 @@ export default function FloatingInstallButton({
84
83
85
84
React . useEffect ( ( ) => {
86
85
const visitedPages = window . sessionStorage . getItem ( CLOSE_INSTALL_BUTTON_KEY )
87
- if ( ! visitedPages ) {
86
+ if ( ! visitedPages && ! buttonVisibility ) {
88
87
setButtonVisibility ( true )
89
88
sendTrackEventRequest ( trackEventParams && trackEventParams . onShow )
90
89
}
@@ -98,6 +97,7 @@ export default function FloatingInstallButton({
98
97
99
98
const onSelect = ( ) => {
100
99
sendTrackEventRequest ( trackEventParams && trackEventParams . onSelect )
100
+ return true
101
101
}
102
102
103
103
return buttonVisibility && isPublic ? (
You can’t perform that action at this time.
0 commit comments