Skip to content

Commit 9f7edc9

Browse files
committed
change usecase publishing to check on sdg instead of metadata
1 parent f3811e2 commit 9f7edc9

File tree

1 file changed

+1
-1
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/publish

1 file changed

+1
-1
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/publish/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const Publish = () => {
172172
error:
173173
UseCaseData.data?.useCases[0]?.sectors.length === 0 ||
174174
UseCaseData.data?.useCases[0]?.summary.length === 0 ||
175-
UseCaseData.data?.useCases[0]?.metadata.length === 0 ||
175+
UseCaseData.data?.useCases[0]?.sdgs.length === 0 ||
176176
UseCaseData.data?.useCases[0]?.logo === null
177177
? 'Summary or SDG or Sectors or Logo is missing. Please add to continue.'
178178
: '',

0 commit comments

Comments
 (0)