Skip to content

Commit

Permalink
v1.19.31
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed May 29, 2024
1 parent 37856b0 commit ee6a96a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
1 change: 1 addition & 0 deletions changelogs/1.19.31.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fixes and performance improvements
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytonwallet",
"version": "1.19.30",
"version": "1.19.31",
"description": "The most feature-rich web wallet and browser extension for TON – with support of multi-accounts, tokens (jettons), NFT, TON DNS, TON Sites, TON Proxy, and TON Magic.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.30
1.19.31
4 changes: 2 additions & 2 deletions src/components/main/sections/Content/Assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ function Assets({

const tokenSlugs = useMemo(() => (
tokens
?.filter(({ isDisabled, slug }) => !isDisabled && (slug && mycoin?.slug !== slug))
?.filter(({ isDisabled }) => !isDisabled)
.map(({ slug }) => slug)
), [mycoin, tokens]);
), [tokens]);
const [viewportSlugs, getMore] = useInfiniteScroll(
undefined, tokenSlugs, undefined, undefined, undefined, isActive, isPortrait,
);
Expand Down
11 changes: 2 additions & 9 deletions src/components/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, {
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../global';

import type { ApiToken, ApiWalletInfo, ApiWalletVersion } from '../../api/types';
import type { ApiWalletInfo, ApiWalletVersion } from '../../api/types';
import type { Wallet } from './SettingsWalletVersion';
import { type GlobalState, SettingsState, type UserToken } from '../../global/types';

Expand All @@ -26,7 +26,6 @@ import {
selectCurrentAccountTokens,
selectIsHardwareAccount,
selectIsPasswordPresent,
selectMycoin,
} from '../../global/selectors';
import buildClassName from '../../util/buildClassName';
import { getIsNativeBiometricAuthSupported } from '../../util/capacitor';
Expand Down Expand Up @@ -111,7 +110,6 @@ type StateProps = {
versions?: ApiWalletInfo[];
isCopyStorageEnabled?: boolean;
supportAccountsCount?: number;
mycoin?: ApiToken;
};

const AMOUNT_OF_CLICKS_FOR_DEVELOPERS_MODE = 5;
Expand Down Expand Up @@ -146,7 +144,6 @@ function Settings({
versions,
isCopyStorageEnabled,
supportAccountsCount = SUPPORT_ACCOUNTS_COUNT_DEFAULT,
mycoin,
}: OwnProps & StateProps) {
const {
setSettingsState,
Expand Down Expand Up @@ -179,9 +176,6 @@ function Settings({
const shortBaseSymbol = getShortCurrencySymbol(baseCurrency);

const tonToken = useMemo(() => tokens?.find(({ slug }) => slug === TONCOIN_SLUG), [tokens]);
const renderingOrderedSlugs = useMemo(() => {
return orderedSlugs?.filter((slug) => slug !== mycoin?.slug);
}, [mycoin?.slug, orderedSlugs]);

const wallets = useMemo(() => {
return versions?.map((v) => {
Expand Down Expand Up @@ -624,7 +618,7 @@ function Settings({
<SettingsAssets
isActive={isActive}
tokens={tokens}
orderedSlugs={renderingOrderedSlugs}
orderedSlugs={orderedSlugs}
isInvestorViewEnabled={isInvestorViewEnabled}
areTinyTransfersHidden={areTinyTransfersHidden}
areTokensWithNoCostHidden={areTokensWithNoCostHidden}
Expand Down Expand Up @@ -731,7 +725,6 @@ export default memo(withGlobal<OwnProps>((global): StateProps => {
versions,
isCopyStorageEnabled,
supportAccountsCount,
mycoin: selectMycoin(global),
};
})(Settings));

Expand Down
6 changes: 3 additions & 3 deletions src/components/swap/SwapInitial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ function SwapInitial({
const isErrorExist = errorType !== undefined;
const isEnoughToncoin = toncoin.amount > totalToncoinAmount;
// eslint-disable-next-line max-len
const isCorrectAmountIn = (
const isCorrectAmountIn = Boolean(
amountIn
&& tokenIn?.amount
&& amountInBig.gt(0)
&& amountInBig.lte(tokenInAmountBig)
);
&& amountInBig.lte(tokenInAmountBig),
) || swapType === SwapType.CrosschainToToncoin;
const isEnoughFee = swapType === SwapType.CrosschainToToncoin || isEnoughToncoin || (
dieselStatus === 'available' || dieselStatus === 'not-authorized'
);
Expand Down

0 comments on commit ee6a96a

Please sign in to comment.