diff --git a/machines/bleShare/commonSelectors.ts b/machines/bleShare/commonSelectors.ts index 56bd5dbc02..3ad7876413 100644 --- a/machines/bleShare/commonSelectors.ts +++ b/machines/bleShare/commonSelectors.ts @@ -49,10 +49,6 @@ export function selectIsExchangingDeviceInfoTimeout() { return false; } -export function selectIsDone(state: State) { - return state.matches('reviewing.navigatingToHistory'); -} - export function selectIsOffline() { return false; } diff --git a/machines/bleShare/request/selectors.ts b/machines/bleShare/request/selectors.ts index 9a84faa477..44fef7c198 100644 --- a/machines/bleShare/request/selectors.ts +++ b/machines/bleShare/request/selectors.ts @@ -54,3 +54,7 @@ export function selectIsSavingFailedInIdle(state: State) { export function selectIsSavingFailedInViewingVc(state: State) { return state.matches('reviewing.savingFailed.viewingVc'); } + +export function selectIsDone(state: State) { + return state.matches('reviewing.navigatingToHistory'); +} diff --git a/machines/bleShare/scan/selectors.ts b/machines/bleShare/scan/selectors.ts index 09855cd8a7..7174b93904 100644 --- a/machines/bleShare/scan/selectors.ts +++ b/machines/bleShare/scan/selectors.ts @@ -74,3 +74,7 @@ export function selectIsQrLoginDone(state: State) { export function selectIsQrLoginStoring(state: State) { return state.matches('showQrLogin.storing'); } + +export function selectIsDone(state: State) { + return state.matches('reviewing.navigatingToHome'); +} diff --git a/screens/Request/RequestLayoutController.ts b/screens/Request/RequestLayoutController.ts index 2040a491ec..dcd3569b4d 100644 --- a/screens/Request/RequestLayoutController.ts +++ b/screens/Request/RequestLayoutController.ts @@ -8,11 +8,11 @@ import { selectIsSavingFailedInViewingVc, selectIsWaitingForConnection, selectSenderInfo, + selectIsDone, } from '../../machines/bleShare/request/selectors'; import { selectIsAccepted, selectIsDisconnected, - selectIsDone, selectIsHandlingBleError, selectIsRejected, selectIsReviewing, diff --git a/screens/Scan/ScanLayoutController.ts b/screens/Scan/ScanLayoutController.ts index 8617e645f3..8446c5ec3b 100644 --- a/screens/Scan/ScanLayoutController.ts +++ b/screens/Scan/ScanLayoutController.ts @@ -17,11 +17,11 @@ import { selectIsSendingVcTimeout, selectIsSent, selectReceiverInfo, + selectIsDone, } from '../../machines/bleShare/scan/selectors'; import { selectIsAccepted, selectIsDisconnected, - selectIsDone, selectIsExchangingDeviceInfo, selectIsExchangingDeviceInfoTimeout, selectIsHandlingBleError,