Skip to content

Commit

Permalink
fix: do not return portionBips or portionRecipient if outputPortionAm…
Browse files Browse the repository at this point in the history
…ount is undefined (#619)
  • Loading branch information
mikeki authored Apr 22, 2024
1 parent 41a3347 commit dd27aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/quote/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ export class QuoteHandler extends APIGLambdaHandler<
routeString,
quoteId,
hitsCachedRoutes: hitsCachedRoute,
portionBips: portionBips,
portionRecipient: portionRecipient,
portionBips: outputPortionAmount && portionBips,
portionRecipient: outputPortionAmount && portionRecipient,
portionAmount: outputPortionAmount?.quotient.toString(),
portionAmountDecimals: outputPortionAmount?.toExact(),
}
Expand Down

0 comments on commit dd27aa9

Please sign in to comment.