Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 556a45b

Browse files
committed
Parse present but empty intentOnFilling as true
1 parent 0633aca commit 556a45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/swap_handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const parseGetSwapQuoteRequestParams = (req: express.Request): GetSwapQuoteReque
181181
req.query.intentOnFilling === undefined
182182
? undefined
183183
: {
184-
intentOnFilling: req.query.intentOnFilling === 'true' ? true : false,
184+
intentOnFilling: ['true', ''].includes(req.query.intentOnFilling) ? true : false,
185185
};
186186
// tslint:disable-next-line:boolean-naming
187187
const skipValidation =

0 commit comments

Comments
 (0)