Fix copy-paste error

pull/62/head
Varun Patil 2022-09-15 17:53:15 -07:00
parent 9aa4dd7a20
commit 9ca34b6edf
1 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ export async function* deleteFilesByIds(fileIds: number[]) {
try {
fileInfos = await getFiles(fileIds.filter(f => f));
} catch (e) {
showError(t('photos', 'Failed to delete files.'));
showError(t('memories', 'Failed to delete files.'));
console.error('Failed to get file info for files to delete', fileIds, e);
return;
}
@ -208,8 +208,8 @@ export async function* deleteFilesByIds(fileIds: number[]) {
await deleteFile(fileInfo.filename);
return fileInfo.fileid as number;
} catch (error) {
console.error(t('photos', 'Failed to delete {fileName}.', fileInfo), error);
showError(t('photos', 'Failed to delete {fileName}.', fileInfo));
console.error(t('memories', 'Failed to delete {fileName}.', fileInfo), error);
showError(t('memories', 'Failed to delete {fileName}.', fileInfo));
return 0;
}
});