From 05960aed1ed7cba15b2b3e55ff340ed66c943e04 Mon Sep 17 00:00:00 2001 From: wlren Date: Sat, 8 Oct 2022 21:42:07 +0800 Subject: [PATCH] [questions][ui] fix dialog closing --- .../src/components/questions/ContributeQuestionDialog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/portal/src/components/questions/ContributeQuestionDialog.tsx b/apps/portal/src/components/questions/ContributeQuestionDialog.tsx index 211a78a9..4b551016 100644 --- a/apps/portal/src/components/questions/ContributeQuestionDialog.tsx +++ b/apps/portal/src/components/questions/ContributeQuestionDialog.tsx @@ -32,6 +32,8 @@ export default function ContributeQuestionDialog({ className="relative z-10" onClose={() => { // Todo: save state + setShowDiscardDialog(false); + onCancel(); }}>