Skip to content

Commit

Permalink
fix: fix invalid status when saving delegate statement
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 18, 2024
1 parent ac977e6 commit 71b321b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/SpaceDelegateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const props = defineProps<{
statement: {
about: string;
statement: string;
discourse: string;
network: string;
status: string;
};
edited: boolean;
saving: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/composables/useStatement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 71b321b

Please sign in to comment.