(from: string, to: string)
| 402 | * it — better to disable the button than to navigate into a 400. |
| 403 | */ |
| 404 | export function flowPair(from: string, to: string): { from: string; to: string } | null { |
| 405 | const a = from.trim(); |
| 406 | const b = to.trim(); |
| 407 | if (!a || !b || a.toLowerCase() === b.toLowerCase()) return null; |
| 408 | return { from: a, to: b }; |
| 409 | } |
no outgoing calls
no test coverage detected