Skip to content

Commit

Permalink
Patch State
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Sep 2, 2024
1 parent 89b5fd2 commit 6cbdf1b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ export const App = () => {
}
);

const decodedTransactions = useMemo(
() =>
data &&
(data?.items.map(decodeTransaction).filter(Boolean) as
| AllMultiReturnTypes[]
| undefined),
[data]
);
const decodedTransactions = useMemo(() => {
if (!data || !data.items) return;

return data?.items.map(decodeTransaction).filter(Boolean) as
| AllMultiReturnTypes[]
| undefined;
}, [data]);

const totals = useMemo(() => {
if (!decodedTransactions) return;
Expand Down

0 comments on commit 6cbdf1b

Please sign in to comment.