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