Skip to content

Commit 9ba3320

Browse files
authored
feat(deliverability-stats): show all errors in descending order (#942)
Reviewed-by: @bchrobot
1 parent 85db4ac commit 9ba3320

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/containers/AdminCampaignStats/DeliverabilityStats.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ const DeliverabilityStats = (props: {
107107

108108
<div className={css(styles.secondaryHeader)}>Top errors:</div>
109109
{specificErrors
110-
.sort((e) => e.count)
111-
.slice(0, 5)
110+
.sort((a, b) => b.count - a.count)
112111
.map((e) => (
113112
<div key={e.errorCode}>
114113
{e.errorCode}{" "}

0 commit comments

Comments
 (0)