From 8a17d4555703cd037ba80ba306efb270c5eba07f Mon Sep 17 00:00:00 2001 From: Monil Bhavsar Date: Thu, 10 Nov 2022 19:10:42 +0530 Subject: [PATCH] Fix Lint warning --- src/pages/ReimbursementAccount/Enable2FAPrompt.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/ReimbursementAccount/Enable2FAPrompt.js b/src/pages/ReimbursementAccount/Enable2FAPrompt.js index 6a4142bf67c0..9afce461e87d 100644 --- a/src/pages/ReimbursementAccount/Enable2FAPrompt.js +++ b/src/pages/ReimbursementAccount/Enable2FAPrompt.js @@ -20,7 +20,9 @@ const Enable2FAPrompt = props => ( menuItems={[ { title: props.translate('validationStep.secureYourAccount'), - onPress: () => Link.openOldDotLink(`settings?param={"section":"account","action":"enableTwoFactorAuth","exitTo":"${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.BANK_ACCOUNT}"}`), + onPress: () => { + Link.openOldDotLink(`settings?param={"section":"account","action":"enableTwoFactorAuth","exitTo":"${CONFIG.EXPENSIFY.NEW_EXPENSIFY_URL}${ROUTES.BANK_ACCOUNT}"}`); + }, icon: Expensicons.Shield, shouldShowRightIcon: true, iconRight: Expensicons.NewWindow,