mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 19:20:39 +09:00
6 lines
190 B
TypeScript
6 lines
190 B
TypeScript
export function restoreSubmittedCommentDraft(params: {
|
|
currentBody: string;
|
|
submittedBody: string;
|
|
}) {
|
|
return params.currentBody.trim() ? params.currentBody : params.submittedBody;
|
|
}
|