Skip to content

Commit

Permalink
fix(routing): do not update perform_session_flow_routing output if …
Browse files Browse the repository at this point in the history
…the `SessionRoutingChoice` is none (#5336)
  • Loading branch information
ShankarSinghC authored Jul 16, 2024
1 parent 926dcd3 commit f07689e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/router/src/core/payments/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,9 @@ pub async fn perform_session_flow_routing(
});
}
}
result.insert(pm_type, session_routing_choice);
if !session_routing_choice.is_empty() {
result.insert(pm_type, session_routing_choice);
}
}
}

Expand Down

0 comments on commit f07689e

Please sign in to comment.