Skip to content

Commit

Permalink
fix: show error if the form cannot be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Nov 6, 2020
1 parent 7d46f2a commit 99b38e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useMarketoForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const useMarketoForm = ({
'//app-abj.marketo.com',
munchkinId,
id,
(form) => send({ type: 'READY', form })
(form) => (form ? send({ type: 'READY', form }) : send('LOAD_ERROR'))
);
}),
defineFormActions: asEffect(({ form }) => {
Expand Down

0 comments on commit 99b38e6

Please sign in to comment.