Skip to content

Commit

Permalink
Merge branch 'swap/complete-orders' into passwoard-error-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Oct 10, 2023
2 parents 4513d04 + a722d67 commit b3514e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ export const CompletedOrders = () => {
})}
</ScrollView>

<Counter counter={normalizedOrders?.length ?? 0} customText={strings.listCompletedOrders} />
<Counter
style={styles.counter}
counter={normalizedOrders?.length ?? 0}
customText={strings.listCompletedOrders}
/>
</>
)
}
Expand Down Expand Up @@ -254,4 +258,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
alignItems: 'center',
},
counter: {
paddingVertical: 16,
},
})
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const mapCompletedOrders = (orders: TransactionInfo[], wallet: YoroiWalle
}
})
.filter(isNonNullable)
.sort((a, b) => (a.date > b.date ? -1 : 1))

return result
}
Expand Down

0 comments on commit b3514e3

Please sign in to comment.