Skip to content

Commit

Permalink
chore: useMarketoForm takes params
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Sep 26, 2020
1 parent bd7e3b2 commit 76f16a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/MarketoForm/MarketoForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const MarketoForm = ({
publishableKey,
redirectLink,
}) => {
const [, { state }] = useMarketoForm(
const [, { state }] = useMarketoForm({
munchkinId,
id,
publishableKey,
redirectLink
);
redirectLink,
});

return (
<div
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useMarketoForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const machine = Machine({
},
});

const useMarketoForm = (munchkinId, id, publishableKey, redirectLink) => {
const useMarketoForm = ({ munchkinId, id, publishableKey, redirectLink }) => {
const [state, send] = useMachine(machine, {
actions: {
loadForm: asEffect(() => {
Expand Down

0 comments on commit 76f16a5

Please sign in to comment.