Skip to content

Commit

Permalink
asset data loading wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Aug 27, 2024
1 parent 4182354 commit b2bece9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/organisms/TrendingTokens/TrendingTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export default function TrendingTokens() {
if (cachedTokens) {
responses = JSON.parse(cachedTokens);
} else {
for (const tokenProcess of Object.keys(REFORMATTED_ASSETS)) {
const tokenProcesses = Object.keys(REFORMATTED_ASSETS);
tokenProcesses.pop();
for (const tokenProcess of tokenProcesses) {
const tokenResponse = await readHandler({
processId: tokenProcess,
action: 'Info',
Expand Down Expand Up @@ -77,7 +79,7 @@ export default function TrendingTokens() {
</>
) : (
<>
{Array.from({ length: Object.keys(REFORMATTED_ASSETS).length }, (_, i) => i + 1).map((index) => {
{Array.from({ length: Object.keys(REFORMATTED_ASSETS).length - 1 }, (_, i) => i + 1).map((index) => {
return (
<S.TokenWrapper
key={index}
Expand Down

0 comments on commit b2bece9

Please sign in to comment.