From 8249e9f9e9cbadf123bc2bc9f1a1704f27396f27 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Mon, 29 Apr 2024 18:32:57 +0200 Subject: [PATCH] fix community schema in encode-url-data.ts (#554) * fix community schema in encode-url-data.ts * Create fifty-items-speak.md --- .changeset/fifty-items-speak.md | 5 +++++ packages/status-js/src/utils/encode-url-data.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fifty-items-speak.md 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(