Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fixing assumtion regarding data format stored on redux (#2159)
Browse files Browse the repository at this point in the history
Co-authored-by: Leandro <[email protected]>
  • Loading branch information
alfetopito and Leandro authored Jan 15, 2022
1 parent 5d21047 commit 2830c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/state/enhancedTransactions/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function useAllClaimingTransactionIndices() {
const claimingTransactions = useAllClaimingTransactions()
return useMemo(() => {
const flattenedClaimingTransactions = claimingTransactions.reduce<number[]>((acc, { claim }) => {
if (claim) {
if (claim && claim.indices) {
acc.push(...claim.indices)
}
return acc
Expand Down

0 comments on commit 2830c00

Please sign in to comment.