diff --git a/src/view/com/composer/drafts/DraftsButton.tsx b/src/view/com/composer/drafts/DraftsButton.tsx index 86a589a331..c996b77d51 100644 --- a/src/view/com/composer/drafts/DraftsButton.tsx +++ b/src/view/com/composer/drafts/DraftsButton.tsx @@ -1,7 +1,7 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {type StoredDraft, useDrafts, useSaveDraft} from '#/state/drafts' +import {type StoredDraft, useSaveDraft} from '#/state/drafts' import {atoms as a} from '#/alf' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' @@ -20,11 +20,8 @@ export function DraftsButton({ const {_} = useLingui() const draftsDialogControl = Dialog.useDialogControl() const savePromptControl = Prompt.usePromptControl() - const {data: drafts} = useDrafts() const {isPending: isSaving} = useSaveDraft() - const draftCount = drafts?.length ?? 0 - const handlePress = () => { if (isEmpty) { // Composer is empty, go directly to drafts list @@ -56,11 +53,7 @@ export function DraftsButton({ disabled={isSaving} onPress={handlePress}> - {draftCount > 0 ? ( - Drafts ({draftCount}) - ) : ( - Drafts - )} + Drafts