summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d923cfa)
* Fix imported title   spaces
* Update src/shared/components/post/post-form.tsx
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
* Fix lint issue
---------
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
case "loading":
return <Spinner />;
case "success": {
case "loading":
return <Spinner />;
case "success": {
- const suggestedTitle = this.state.metadataRes.data.metadata.title;
-
+ // Clean up the title of any extra whitespace and replace with a space
+ const suggestedTitle = this.state.metadataRes.data.metadata.title
+ ?.trim()
+ .replace(/\s+/g, " ");
return (
suggestedTitle && (
<button
return (
suggestedTitle && (
<button