Skip to content

Commit

Permalink
Revert "feat: revert "feat: monkey patch""
Browse files Browse the repository at this point in the history
This reverts commit ada0243.
  • Loading branch information
gomesalexandre committed Dec 13, 2024
1 parent 5aa17cc commit 3ac3a4e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ export async function getTrade({

if (routesResponse.isErr()) return Err(routesResponse.unwrapErr())

const { routes } = routesResponse.unwrap()
const { routes: _routes } = routesResponse.unwrap()

// Monkey patch to always end up in the "unstable route not found the second time around" scenario, revert me before opening me,
// and link this commit to reviewers to revert before testing this PR
let routes = quoteOrRate === 'quote' ? [] : _routes

if (routes.length === 0) {
if (quoteOrRate === 'quote')
Expand Down

0 comments on commit 3ac3a4e

Please sign in to comment.