diff --git a/src/devhub/components/templates/AppLayout.jsx b/src/devhub/components/templates/AppLayout.jsx
index e651abfe2..aa09561e1 100644
--- a/src/devhub/components/templates/AppLayout.jsx
+++ b/src/devhub/components/templates/AppLayout.jsx
@@ -46,17 +46,6 @@ const AppHeader = ({ page }) => (
/>
);
-const Footer = (props) => {
- return (
-
- );
-};
-
function AppLayout({ page, children }) {
return (
@@ -66,7 +55,6 @@ function AppLayout({ page, children }) {
{children}
- {/* */}
diff --git a/src/devhub/entity/proposal/Editor.jsx b/src/devhub/entity/proposal/Editor.jsx
index ebfab7594..5e63b3f36 100644
--- a/src/devhub/entity/proposal/Editor.jsx
+++ b/src/devhub/entity/proposal/Editor.jsx
@@ -637,14 +637,15 @@ const SubmitBtn = () => {
const handleOptionClick = (option) => {
setDraftBtnOpen(false);
setSelectedStatus(option.value);
+ handleSubmit(option.value);
};
const toggleDropdown = () => {
setDraftBtnOpen(!isDraftBtnOpen);
};
- const handleSubmit = () => {
- const isDraft = selectedStatus === "draft";
+ const handleSubmit = (status) => {
+ const isDraft = status === "draft";
if (isDraft) {
onSubmit({ isDraft });
cleanDraft();
@@ -669,7 +670,7 @@ const SubmitBtn = () => {
}
>
!disabledSubmitBtn && handleSubmit()}
+ onClick={() => !disabledSubmitBtn && handleSubmit(selectedStatus)}
className="p-2 d-flex gap-2 align-items-center "
>
{isTxnCreated ? (