mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-07 16:11:46 +02: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;
|
|
}
|