|
1 | | -// @flow |
2 | | - |
3 | | -import { type EdgeAccount } from 'edge-core-js' |
| 1 | +import { EdgeAccount } from 'edge-core-js' |
4 | 2 | import * as React from 'react' |
5 | 3 | import { Keyboard } from 'react-native' |
6 | 4 | import { sprintf } from 'sprintf-js' |
7 | 5 |
|
8 | | -import s from '../common/locales/strings.js' |
9 | | -import { ButtonsModal } from '../components/modals/ButtonsModal.js' |
10 | | -import { Airship } from '../components/services/AirshipInstance.js' |
11 | | -import * as Constants from '../constants/index.js' |
| 6 | +import s from '../common/locales/strings' |
| 7 | +import { ButtonsModal } from '../components/modals/ButtonsModal' |
| 8 | +import { Airship } from '../components/services/AirshipInstance' |
| 9 | +import * as Constants from '../constants/index' |
12 | 10 | import { |
13 | 11 | enableTouchId, |
14 | 12 | isTouchDisabled, |
15 | 13 | isTouchEnabled, |
16 | 14 | supportsTouchId |
17 | | -} from '../keychain.js' |
18 | | -import { |
19 | | - type Dispatch, |
20 | | - type GetState, |
21 | | - type Imports |
22 | | -} from '../types/ReduxTypes.js' |
23 | | -import { hasSecurityAlerts } from '../util/hasSecurityAlerts.js' |
24 | | -import { setMostRecentUsers } from './PreviousUsersActions.js' |
| 15 | +} from '../keychain' |
| 16 | +import { Dispatch, GetState, Imports } from '../types/ReduxTypes' |
| 17 | +import { hasSecurityAlerts } from '../util/hasSecurityAlerts' |
| 18 | +import { setMostRecentUsers } from './PreviousUsersActions' |
25 | 19 |
|
26 | 20 | /** |
27 | 21 | * The user has just logged in, so figure out what do to next. |
@@ -146,7 +140,7 @@ async function twofaReminder(account: EdgeAccount) { |
146 | 140 |
|
147 | 141 | const enableOtp = async account => { |
148 | 142 | await account.enableOtp() |
149 | | - return Airship.show(bridge => ( |
| 143 | + return await Airship.show(bridge => ( |
150 | 144 | <ButtonsModal |
151 | 145 | bridge={bridge} |
152 | 146 | title={s.strings.otp_authentication_header} |
@@ -174,7 +168,7 @@ async function twofaReminder(account: EdgeAccount) { |
174 | 168 |
|
175 | 169 | const createOtpCheckModalDontAsk = async () => { |
176 | 170 | Keyboard.dismiss() |
177 | | - return Airship.show(bridge => ( |
| 171 | + return await Airship.show(bridge => ( |
178 | 172 | <ButtonsModal |
179 | 173 | bridge={bridge} |
180 | 174 | title={s.strings.otp_reset_modal_header} |
|
0 commit comments