Skip to content

Commit 074e4ca

Browse files
committed
fix call.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent ba27b0a commit 074e4ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/pages/iou/request/step/IOURequestStepScan

src/pages/iou/request/step/IOURequestStepScan/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,8 @@ function IOURequestStepScan({
974974
const [containerHeight, setContainerHeight] = useState(0);
975975
const [desktopUploadViewHeight, setDesktopUploadViewHeight] = useState(0);
976976
const [downloadAppBannerHeight, setDownloadAppBannerHeight] = useState(0);
977-
const shouldHideDownloadAppBanner = isMobile || downloadAppBannerHeight + desktopUploadViewHeight + styles.uploadFileView(isSmallScreenWidth).paddingVertical * 2 > containerHeight;
977+
/* We use isMobile() here to explicitly hide DownloadAppBanner component on both mobile web and native apps */
978+
const shouldHideDownloadAppBanner = isMobile() || downloadAppBannerHeight + desktopUploadViewHeight + styles.uploadFileView(isSmallScreenWidth).paddingVertical * 2 > containerHeight;
978979

979980
const desktopUploadView = () => (
980981
<View
@@ -1073,7 +1074,6 @@ function IOURequestStepScan({
10731074
receiptImageTopPosition={receiptImageTopPosition}
10741075
/>
10751076
)}
1076-
{/* We use isMobile() here to explicitly hide DownloadAppBanner component on both mobile web and native apps */}
10771077
{!shouldHideDownloadAppBanner && <DownloadAppBanner onLayout={(e) => setDownloadAppBannerHeight(e.nativeEvent.layout.height)} />}
10781078
{ErrorModal}
10791079
{startLocationPermissionFlow && !!receiptFiles.length && (

0 commit comments

Comments
 (0)