Fixes missing navigation state on exiting the app
This commit is contained in:
@@ -20,7 +20,7 @@ const navigationSlice = createSlice({
|
|||||||
if (currentPage === 'Home') {
|
if (currentPage === 'Home') {
|
||||||
closeDb()
|
closeDb()
|
||||||
BackHandler.exitApp()
|
BackHandler.exitApp()
|
||||||
return false
|
return { currentPage }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPage === 'CycleDay' || isSymptomView(currentPage)) {
|
if (currentPage === 'CycleDay' || isSymptomView(currentPage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user