diff --git a/data/mini_app/wallet/src/App.tsx b/data/mini_app/wallet/src/App.tsx index 10fa4c86cf..5e7bec6acf 100644 --- a/data/mini_app/wallet/src/App.tsx +++ b/data/mini_app/wallet/src/App.tsx @@ -423,6 +423,7 @@ function App() { (state: RootState) => state.p2pUser, ); const fiatCurrency = useAppSelector((state) => state.settings.fiatCurrency); + const scwAddress = useAppSelector((state) => state.scw.address); const { passcodeType, requiredOnOpen, openUnlocked } = useSelector( (state: RootState) => state.passcode, ); @@ -448,6 +449,12 @@ function App() { const navigateToSettings = () => { if (location.pathname === routePaths.SETTINGS_LANGUAGE) { window.history.back(); + } else if ( + matchPath(`${routePaths.SCW_MAIN}*`, location.pathname) && + scwAddress + ) { + window.Telegram.WebApp.expand(); + navigate(routePaths.SCW_SETTINGS); } else if ( location.pathname !== routePaths.SETTINGS && location.pathname !== routePaths.WV diff --git a/data/mini_app/wallet/src/pages/collectibles/CollectiblePage/components/Collectible/Collectible.tsx b/data/mini_app/wallet/src/pages/collectibles/CollectiblePage/components/Collectible/Collectible.tsx index 5cb77b96b1..3c31e57d13 100644 --- a/data/mini_app/wallet/src/pages/collectibles/CollectiblePage/components/Collectible/Collectible.tsx +++ b/data/mini_app/wallet/src/pages/collectibles/CollectiblePage/components/Collectible/Collectible.tsx @@ -49,9 +49,8 @@ const Collectible: FC = ({ collectible }) => { const snackbarContext = useContext(SnackbarContext); const { botUsername } = useAppSelector((state) => state.wallet); const onShareClick = () => { - const collectibleUrl = generateTelegramLink(botUsername, { - startattach: generateStartAttach(`collectible_${collectible.address}`), - attach: 'wallet', + const collectibleUrl = generateTelegramLink(`${botUsername}/start`, { + startapp: generateStartAttach(`collectible_${collectible.address}`), }); copyToClipboard(collectibleUrl).then(() => {