Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Jan 17, 2025
1 parent 46eeee0 commit 343f384
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/mobile/src/store/entry/getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import type { EntryModel } from "./types"

const get = useEntryStore.getState

export const getEntry = (id: string): EntryModel | null => {
return get().data[id] || null
export const getEntry = (id: string): EntryModel | undefined => {
return get().data[id]
}
2 changes: 1 addition & 1 deletion apps/mobile/src/store/entry/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const usePrefetchEntries = (props: FetchEntriesProps) => {
})
}

export const useEntry = (id: string): EntryModel | null => {
export const useEntry = (id: string): EntryModel | undefined => {
return useEntryStore((state) => state.data[id])
}

Expand Down

0 comments on commit 343f384

Please sign in to comment.