Skip to content

Commit

Permalink
Merge pull request Expensify#26752 from allroundexperts/fix-26706
Browse files Browse the repository at this point in the history
fix: download app modal hide permanently when clicked on download
  • Loading branch information
cristipaval authored Sep 5, 2023
2 parents 6b1a667 + c698c08 commit b95c1dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/DownloadAppModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ const defaultProps = {
};

function DownloadAppModal({isAuthenticated, showDownloadAppBanner}) {
const [shouldShowBanner, setshouldShowBanner] = useState(Browser.isMobile() && isAuthenticated && showDownloadAppBanner);
const [shouldShowBanner, setShouldShowBanner] = useState(Browser.isMobile() && isAuthenticated && showDownloadAppBanner);

const {translate} = useLocalize();

const handleCloseBanner = () => {
setShowDownloadAppModal(false);
setshouldShowBanner(false);
setShouldShowBanner(false);
};

let link = '';
Expand All @@ -44,6 +44,8 @@ function DownloadAppModal({isAuthenticated, showDownloadAppBanner}) {
}

const handleOpenAppStore = () => {
setShowDownloadAppModal(false);
setShouldShowBanner(false);
Link.openExternalLink(link, true);
};

Expand Down

0 comments on commit b95c1dd

Please sign in to comment.