Skip to content

Commit

Permalink
Move AssetListTab spans end calls into branches in useEffect hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Nov 5, 2024
1 parent bff8cbe commit 0d5b194
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/components/app/assets/token-list/token-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export default function TokenList({
]);

useEffect(() => {
endTrace({ name: TraceName.AccountOverviewAssetListTabFCP });
}, []);

if (!loading) {
endTrace({ name: TraceName.AccountOverviewAssetListTab });
}
if (loading) {
endTrace({ name: TraceName.AccountOverviewAssetListTabFCP });
} else {
endTrace({ name: TraceName.AccountOverviewAssetListTab });
}
}, [loading]);

return loading ? (
<Box
Expand Down

0 comments on commit 0d5b194

Please sign in to comment.