Skip to content

Commit

Permalink
Fix solutions action (#556)
Browse files Browse the repository at this point in the history
* fix solutions action

* fix prettier
  • Loading branch information
Megha-Dev-19 authored Dec 8, 2023
1 parent bc6dcf8 commit 2f88ec8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/devhub/entity/post/PostEditor.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
const cleanDescription = (description) => {
return description
? description.replace(
/###### Requested amount: .+?\n###### Requested sponsor: @[^\s]+\n/g,
""
)
: description;
};

initState({
seekingFunding: props.seekingFunding ?? false,
author_id: context.accountId,
Expand Down Expand Up @@ -89,13 +98,6 @@ const labels = labelStrings.map((s) => {
return { name: s };
});

const cleanDescription = (description) => {
return description.replace(
/###### Requested amount: .+?\n###### Requested sponsor: @[^\s]+\n/g,
""
);
};

if (!state.draftStateApplied && props.draftState) {
State.update({ ...props.draftState, draftStateApplied: true });
}
Expand Down

0 comments on commit 2f88ec8

Please sign in to comment.