Skip to content

Commit

Permalink
refactor: add invalid pull url feedback (#992)
Browse files Browse the repository at this point in the history
Fixes #961
  • Loading branch information
OgDev-01 authored Mar 10, 2023
1 parent a72e223 commit 28fe15c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/molecules/HighlightInput/highlight-input-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const HighlightInputForm = ({ refreshCallback }: HighlightInputFormProps): JSX.E
ToastTrigger({ message: "An error occured!!!", type: "error" });
}
}
} else {
ToastTrigger({ message: "Please provide a valid pull request link!", type: "error" });
}
};

Expand Down Expand Up @@ -139,8 +141,7 @@ const HighlightInputForm = ({ refreshCallback }: HighlightInputFormProps): JSX.E
value={bodyText}
placeholder={`Share your thoughts and link to it.
https://github.com/open-sauced/insights/pull/913`
}
https://github.com/open-sauced/insights/pull/913`}
onChange={(e) => {
handleTextAreaInputChange(e);
setCharCount(e.target.value.length);
Expand Down

0 comments on commit 28fe15c

Please sign in to comment.