diff --git a/.changeset/fifty-items-speak.md b/.changeset/fifty-items-speak.md new file mode 100644 index 00000000..22ff4f0f --- /dev/null +++ b/.changeset/fifty-items-speak.md @@ -0,0 +1,5 @@ +--- +"@status-im/js": patch +--- + +fix community schema in encode-url-data.ts diff --git a/packages/status-js/src/utils/encode-url-data.ts b/packages/status-js/src/utils/encode-url-data.ts index e1f723e8..050320a0 100644 --- a/packages/status-js/src/utils/encode-url-data.ts +++ b/packages/status-js/src/utils/encode-url-data.ts @@ -16,7 +16,7 @@ const communitySchema = z.object({ description: z.string().max(140).nonempty(), membersCount: z.number().nonnegative(), color: colorSchema, - tagIndices: z.number().nonnegative().array(), + tagIndices: z.number().nonnegative().array().optional(), }) export function encodeCommunityURLData(