Skip to content

Commit

Permalink
Merge pull request #7 from dod-advana/handleSubmitProp
Browse files Browse the repository at this point in the history
Added arguments to handleSubmit
  • Loading branch information
drospond authored Oct 13, 2021
2 parents c2885d4 + e9b47e1 commit 0ccc090
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/components/FeedbackModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ function FeedbackModal(_ref) {
}

_context.next = 5;
return handleSubmit();
return handleSubmit({
name: "".concat(firstName, " ").concat(lastName),
email: email,
feedback: feedback,
rating: rating
});

case 5:
_context.next = 9;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dod-advana/advana-jira-feedback",
"version": "0.4.12",
"version": "0.4.13",
"private": false,
"publishConfig": {
"registry": "https://npm.pkg.github.com"
Expand Down
7 changes: 6 additions & 1 deletion src/lib/components/FeedbackModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ export default function FeedbackModal({
try {
setLoading(true);
if(handleSubmit){
await handleSubmit();
await handleSubmit({
name: `${firstName} ${lastName}`,
email,
feedback,
rating
});
}else{
await submitFeedback({
name: `${firstName} ${lastName}`,
Expand Down

0 comments on commit 0ccc090

Please sign in to comment.