Skip to content

Commit

Permalink
fix: fix empty folder name on delete confirmation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcl-io committed Apr 27, 2021
1 parent 34ba385 commit 2613082
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/containers/Sidebar/Folders/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ const Folders = () => {
{deleteFolderConfirm && (
<DefaultDialog
title='Delete Folder?'
text={`Are you sure you want to delete ${deleteFolderConfirm.title}? Notes are NOT deleted along with the folder — you must delete notes individually.`}
text={
<>
Are you sure you want to delete <b>{deleteFolderConfirm.title || 'Untitled'}</b>?
Notes are NOT deleted along with the folder — you must delete notes individually.
</>
}
withCancel
withConfirm
confirmLabel='Delete Folder'
Expand Down

0 comments on commit 2613082

Please sign in to comment.