refactor(mobile): valildation of server after each scan
Some checks failed
Build and Push LST Docker Image / docker (push) Failing after 3m40s
Some checks failed
Build and Push LST Docker Image / docker (push) Failing after 3m40s
This commit is contained in:
@@ -19,7 +19,11 @@ export default function useDeviceLock() {
|
||||
nextAppState === "background" || nextAppState === "inactive";
|
||||
|
||||
if (wasActive && isNowInactive) {
|
||||
useMobileAuthStore.getState().lock();
|
||||
const auth = useMobileAuthStore.getState();
|
||||
|
||||
if (auth.shouldLockForIdle()) {
|
||||
auth.lock();
|
||||
}
|
||||
}
|
||||
|
||||
appStateRef.current = nextAppState;
|
||||
|
||||
Reference in New Issue
Block a user