Skip to content

Commit

Permalink
Fix SEP-8 action_required return condition (#174)
Browse files Browse the repository at this point in the history
### What

Fix SEP-8 action_required return condition.

### Why

The code was using the wrong condition check.
  • Loading branch information
marcelosalloum committed May 26, 2021
1 parent b95ca52 commit 5eeeefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sep8Send/Sep8ActionRequiredForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Sep8ActionRequiredForm = ({

useEffect(() => {
if (sep8Send.data.sep8Step === Sep8Step.SENT_ACTION_REQUIRED_FIELDS) {
if (result === Sep8ActionRequiredResultType.NO_FURTHER_ACTION_REQUIRED) {
if (nextUrl && result === Sep8ActionRequiredResultType.FOLLOW_NEXT_URL) {
window.open(nextUrl, "_blank");
}

Expand Down

0 comments on commit 5eeeefa

Please sign in to comment.