Skip to content

Commit 5376b2f

Browse files
refactor: changes success text
1 parent 0827127 commit 5376b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/components/export-data.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function ExportData({
8484
return { content, count: data.length, format }
8585
},
8686
onSuccess: ({ content, count, format }) => {
87-
const successText = `Copied ${count} rows to clipboard on ${format} format`
87+
const successText = `Copied ${count} ${count === 1 ? 'row' : 'rows'} to clipboard on ${format} format`
8888
copy(content, successText)
8989
},
9090
onError: handleError,

0 commit comments

Comments
 (0)