Bug fix and refactoring

This commit is contained in:
syuilo 2020-12-28 23:05:30 +09:00
parent 54961235a4
commit 5c490e7521
5 changed files with 14 additions and 15 deletions

View file

@ -2,7 +2,7 @@
* 稿
* @param {*} note (packされた)稿
*/
const summarize = (note: any, locale: any): string => {
export const getNoteSummary = (note: any, locale: any): string => {
if (note.deletedAt) {
return `(${locale['deletedNote']})`;
}
@ -50,5 +50,3 @@ const summarize = (note: any, locale: any): string => {
return summary.trim();
};
export default summarize;