Skip to content

Commit

Permalink
mobile: fix home shortcut not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Jul 27, 2024
1 parent 2aeb875 commit a708c9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/mobile/app/navigation/tabs-holder.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import {
} from "../services/event-manager";
import { useSettingStore } from "../stores/use-setting-store";
import {
eClearEditor,
eCloseFullscreenEditor,
eOnEnterEditor,
eOnExitEditor,
Expand Down Expand Up @@ -286,9 +285,10 @@ const _TabsHolder = () => {
break;
case "mobile":
if (
state &&
!state?.movedAway &&
useTabStore.getState().getCurrentNoteId()
(state &&
!state?.movedAway &&
useTabStore.getState().getCurrentNoteId()) ||
editorState().movedAway === false
) {
tabBarRef.current?.goToIndex(2, false);
} else {
Expand Down

0 comments on commit a708c9e

Please sign in to comment.