Skip to content

Commit

Permalink
revert change for closing composer on web only (#3343)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Mar 23, 2024
1 parent 0baf9f9 commit ef24611
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/view/com/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,11 @@ export const ComposePost = observer(function ComposePost({
title={_(msg`Discard draft?`)}
description={_(msg`Are you sure you'd like to discard this draft?`)}
onConfirm={() => {
discardPromptControl.close(onClose)
if (isWeb) {
onClose()
} else {
discardPromptControl.close(onClose)
}
}}
confirmButtonCta={_(msg`Discard`)}
confirmButtonColor="negative"
Expand Down

0 comments on commit ef24611

Please sign in to comment.