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