Skip to content

Commit 553c368

Browse files
committed
🐛 & 삭제
1 parent c012783 commit 553c368

File tree

1 file changed

+2
-2
lines changed
  • packages/floating-install-button/src

1 file changed

+2
-2
lines changed

packages/floating-install-button/src/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const InstallDescription = styled(Text)`
3333
`
3434

3535
const InstallAnchor = styled.a`
36-
&,
3736
&:visited,
3837
&:hover,
3938
&:active {
@@ -84,7 +83,7 @@ export default function FloatingInstallButton({
8483

8584
React.useEffect(() => {
8685
const visitedPages = window.sessionStorage.getItem(CLOSE_INSTALL_BUTTON_KEY)
87-
if (!visitedPages) {
86+
if (!visitedPages && !buttonVisibility) {
8887
setButtonVisibility(true)
8988
sendTrackEventRequest(trackEventParams && trackEventParams.onShow)
9089
}
@@ -98,6 +97,7 @@ export default function FloatingInstallButton({
9897

9998
const onSelect = () => {
10099
sendTrackEventRequest(trackEventParams && trackEventParams.onSelect)
100+
return true
101101
}
102102

103103
return buttonVisibility && isPublic ? (

0 commit comments

Comments
 (0)