diff --git a/.changeset/loud-sheep-press.md b/.changeset/loud-sheep-press.md new file mode 100644 index 000000000..06959a230 --- /dev/null +++ b/.changeset/loud-sheep-press.md @@ -0,0 +1,5 @@ +--- +"@telegram-apps/sdk": patch +--- + +Fix invalid Mini App mount using theme params RGB header color diff --git a/packages/sdk/src/scopes/components/mini-app/methods.ts b/packages/sdk/src/scopes/components/mini-app/methods.ts index b1eeaa3f9..281368356 100644 --- a/packages/sdk/src/scopes/components/mini-app/methods.ts +++ b/packages/sdk/src/scopes/components/mini-app/methods.ts @@ -18,9 +18,6 @@ import { computed, type Computed } from '@telegram-apps/signals'; import { $version, postEvent } from '@/scopes/globals.js'; import { ERR_ALREADY_CALLED } from '@/errors.js'; import { mount as tpMount } from '@/scopes/components/theme-params/methods.js'; -import { - headerBackgroundColor as tpHeaderBackgroundColor, -} from '@/scopes/components/theme-params/signals.js'; import { subAndCall } from '@/utils/subAndCall.js'; import { withSupports } from '@/scopes/toolkit/withSupports.js'; import { withIsSupported } from '@/scopes/toolkit/withIsSupported.js'; @@ -139,7 +136,7 @@ export const mount = withComponentSupported((): void => { backgroundColor.set(s ? s.backgroundColor : 'bg_color'); bottomBarColor.set(s ? s.bottomBarColor : 'bottom_bar_bg_color'); - headerColor.set(s ? s.headerColor : tpHeaderBackgroundColor() || 'bg_color'); + headerColor.set(s ? s.headerColor : 'bg_color'); setBackgroundColor.isSupported() && subAndCall(backgroundColor, onBgColorChanged); setBottomBarColor.isSupported() && subAndCall(bottomBarColor, onBottomBarBgColorChanged);