Avoid to show the resume draft button on empty posts

This commit is contained in:
dtonon 2026-05-12 16:30:08 +01:00
parent b942c4616e
commit 2bd3ce1f21

View file

@ -36,6 +36,11 @@ export function openDraft() {
} }
export function iconizeDraft() { export function iconizeDraft() {
// If nothing was entered, fully close instead of showing the resume pill
if (!draftState.hasDraft) {
discardDraft();
return;
}
modalOpen = false; modalOpen = false;
iconized = true; iconized = true;
} }