fix dialog back button for android (#3428)
* fix types * remove unused async * add try/catch
This commit is contained in:
parent
c80dcc565e
commit
cd29dba761
3 changed files with 39 additions and 23 deletions
|
@ -508,11 +508,7 @@ 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)
|
||||
}
|
||||
discardPromptControl.close(onClose)
|
||||
}}
|
||||
confirmButtonCta={_(msg`Discard`)}
|
||||
confirmButtonColor="negative"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue