Skip to content

Commit

Permalink
feat(): fix finish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-grzelak committed Jul 27, 2023
1 parent c12262e commit 9138e30
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ export const EmbeddedSigningAction: FC<EmbeddedSigningActionActionProps> = ({
useEffect(() => {
if (isFinished) {
setIsIframeLoaded(false)
finishSigning()

if (event === DocuSignEvent.SIGNING_COMPLETE) {
finishSigning()
}
}
}, [finishSigning, isFinished])
}, [event, finishSigning, isFinished])

if (isIframe) {
return <IFrameMessager iframeEvent={iframeEvent} setEvent={setEvent} />
Expand Down

0 comments on commit 9138e30

Please sign in to comment.