revert change for closing composer on web only (#3343)
parent
0baf9f9919
commit
ef24611a1f
|
@ -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={() => {
|
||||
if (isWeb) {
|
||||
onClose()
|
||||
} else {
|
||||
discardPromptControl.close(onClose)
|
||||
}
|
||||
}}
|
||||
confirmButtonCta={_(msg`Discard`)}
|
||||
confirmButtonColor="negative"
|
||||
|
|
Loading…
Reference in New Issue