mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 10:30:37 +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;
|
||
|
|
}
|