Skip to content

Commit

Permalink
fix: Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick1904 committed Apr 19, 2022
1 parent 7e82dcd commit 71f4692
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/frontend/src/components/wallet/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export function Wallet({
createFromImplicitSuccess,
createCustomName,
fungibleTokensList,
tokensLoader,
tokensLoading,
availableAccounts,
sortedNFTs,
handleCloseLinkdropModal,
Expand Down Expand Up @@ -291,7 +291,7 @@ export function Wallet({
? <NFTs tokens={sortedNFTs} />
: <FungibleTokens
balance={balance}
tokensLoader={tokensLoader}
tokensLoading={tokensLoading}
fungibleTokens={fungibleTokensList}
accountExists={accountExists}
/>
Expand Down Expand Up @@ -330,7 +330,7 @@ export function Wallet({
);
}

const FungibleTokens = ({ balance, tokensLoader, fungibleTokens, accountExists }) => {
const FungibleTokens = ({ balance, tokensLoading, fungibleTokens, accountExists }) => {
const zeroBalanceAccount = accountExists === false;
return (
<>
Expand Down Expand Up @@ -387,7 +387,7 @@ const FungibleTokens = ({ balance, tokensLoader, fungibleTokens, accountExists }
{!zeroBalanceAccount &&
<>
<div className='sub-title tokens'>
<span className={classNames({ dots: tokensLoader })}><Translate id='wallet.yourPortfolio' /></span>
<span className={classNames({ dots: tokensLoading })}><Translate id='wallet.yourPortfolio' /></span>
<span><Translate id='wallet.tokenBalance' /></span>
</div>
<Tokens tokens={fungibleTokens} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/routes/WalletWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function WalletWrapper({
const createFromImplicitSuccess = useSelector(selectCreateFromImplicitSuccess);
const createCustomName = useSelector(selectCreateCustomName);
const fungibleTokensList = useFungibleTokensIncludingNEAR();
const tokensLoader = useSelector((state) => selectTokensLoading(state, { accountId }));
const tokensLoading = useSelector((state) => selectTokensLoading(state, { accountId }));
const availableAccounts = useSelector(selectAvailableAccounts);
const sortedNFTs = useSelector((state) => selectTokensWithMetadataForAccountId(state, { accountId }));

Expand All @@ -53,7 +53,7 @@ export function WalletWrapper({
createFromImplicitSuccess={createFromImplicitSuccess}
createCustomName={createCustomName}
fungibleTokensList={fungibleTokensList}
tokensLoader={tokensLoader}
tokensLoading={tokensLoading}
availableAccounts={availableAccounts}
sortedNFTs={sortedNFTs}
handleCloseLinkdropModal={
Expand Down

0 comments on commit 71f4692

Please sign in to comment.