Skip to content

Commit

Permalink
fix(views/history): Fix pluralization errors in header & toast text
Browse files Browse the repository at this point in the history
  • Loading branch information
tohjustin committed Dec 23, 2019
1 parent 51c4e49 commit 5779e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/history/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const HistoryView = ({
const count = selectedRecordIds.length;
setSelectedRecordIds([]);
toaster.success(
`Successfully deleted ${count} ${count > 1 ? "record" : "records"}`,
`Successfully deleted ${count} ${count > 1 ? "records" : "record"}`,
{ id: DELETE_TOASTER_ID }
);
},
Expand Down Expand Up @@ -83,7 +83,7 @@ const HistoryView = ({
const headerText = isDeletingRecords
? "Deleting records..."
: `${selectedRecordIds.length} ${
selectedRecordIds.length > 1 ? "record" : "records"
selectedRecordIds.length > 1 ? "records" : "record"
} selected`;
headerContent = (
<>
Expand Down

0 comments on commit 5779e03

Please sign in to comment.