Update content of files

This commit is contained in:
GitHub Action 2023-09-18 08:27:54 +00:00
parent 01442adcef
commit fce7cb3051
2 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -49,9 +49,8 @@ const Collectible: FC<CollectibleProps> = ({ 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(() => {