From 8b5d67276fc20c3e396287f1341cc6fcc6b8d3e9 Mon Sep 17 00:00:00 2001 From: DomWane Date: Thu, 10 Oct 2024 11:58:35 +0200 Subject: [PATCH] fix: project status --- components/Project/Create/Categories/Technology.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Project/Create/Categories/Technology.vue b/components/Project/Create/Categories/Technology.vue index 2cfc05b..c0ca466 100644 --- a/components/Project/Create/Categories/Technology.vue +++ b/components/Project/Create/Categories/Technology.vue @@ -5,7 +5,7 @@ const props = defineProps<{ project?: Partial }>() -const version = ref(props.project?.project_phase?.toLowerCase() || undefined) +const version = ref(props.project?.project_phase ? props.project?.project_phase?.toLowerCase() : props.project?.project_status?.version ? props.project?.project_status?.version.toLowerCase() : undefined) const openSource = ref(props.project?.blockchain_features?.opensource || false) const upgradability = ref(props.project?.blockchain_features?.upgradability?.enabled || false) const assetType = ref(props.project?.blockchain_features?.asset_custody_type?.toLowerCase() || '') @@ -19,6 +19,12 @@ const { saveProject } = useProject() function save() { saveProject({ project_phase: version.value, + project_status: { + live_status: version.value ? true : false, + mainnet: version.value === 'mainnet' ? true : false, + testnet: version.value === 'testnet' ? true : false, + version: version.value, + }, blockchain_features: { opensource: openSource.value, upgradability: {