From 5bb68bf94d8672d558e6a7a5d6b09d4dcdc91c5d Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko Date: Fri, 12 Apr 2024 01:52:39 +0300 Subject: [PATCH 1/2] fix(launch-params): fix invalid lp serialization --- packages/sdk/src/launch-params/serializeLaunchParams.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/launch-params/serializeLaunchParams.ts b/packages/sdk/src/launch-params/serializeLaunchParams.ts index 431fe3af4..2f4386ee7 100644 --- a/packages/sdk/src/launch-params/serializeLaunchParams.ts +++ b/packages/sdk/src/launch-params/serializeLaunchParams.ts @@ -26,7 +26,7 @@ export function serializeLaunchParams(value: LaunchParams): string { params.set('tgWebAppVersion', version); if (startParam) { - params.set('tgWebAppStartParam', version); + params.set('tgWebAppStartParam', startParam); } if (typeof showSettings === 'boolean') { From 26493b8bcddf67c53f8d864caf03de3e4f91ca15 Mon Sep 17 00:00:00 2001 From: Vladislav Kibenko Date: Fri, 12 Apr 2024 01:53:05 +0300 Subject: [PATCH 2/2] docs(changeset): Fix invalid launch params serialization --- .changeset/tall-timers-lie.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tall-timers-lie.md diff --git a/.changeset/tall-timers-lie.md b/.changeset/tall-timers-lie.md new file mode 100644 index 000000000..be23450b4 --- /dev/null +++ b/.changeset/tall-timers-lie.md @@ -0,0 +1,5 @@ +--- +"@tma.js/sdk": patch +--- + +Fix invalid launch params serialization