From 71b321b69eb9734d5ead041d3e0537a566cf746e Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:02:49 +0900 Subject: [PATCH] fix: fix invalid status when saving delegate statement --- src/components/SpaceDelegateEdit.vue | 3 +++ src/composables/useStatement.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/SpaceDelegateEdit.vue b/src/components/SpaceDelegateEdit.vue index 3560e4c59b3..1731e658956 100644 --- a/src/components/SpaceDelegateEdit.vue +++ b/src/components/SpaceDelegateEdit.vue @@ -9,6 +9,9 @@ const props = defineProps<{ statement: { about: string; statement: string; + discourse: string; + network: string; + status: string; }; edited: boolean; saving: boolean; diff --git a/src/composables/useStatement.ts b/src/composables/useStatement.ts index 20045dc1a4e..ab791cd6bf7 100644 --- a/src/composables/useStatement.ts +++ b/src/composables/useStatement.ts @@ -91,8 +91,8 @@ export function useStatement() { const defaultStatement = { about: '', statement: '', - network: '', - status: 's', + network: 's', + status: 'INACTIVE', discourse: '' }; return clone(statements.value?.[id?.toLowerCase()] || defaultStatement);