Skip to content

Commit a1ee231

Browse files
Update packages/thirdweb/src/bridge/Buy.ts
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Signed-off-by: greg <[email protected]>
1 parent 26df50c commit a1ee231

File tree

1 file changed

+1
-1
lines changed
  • packages/thirdweb/src/bridge

1 file changed

+1
-1
lines changed

packages/thirdweb/src/bridge/Buy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export async function quote(options: quote.Options): Promise<quote.Result> {
118118
url.searchParams.set("destinationChainId", destinationChainId.toString());
119119
url.searchParams.set("destinationTokenAddress", destinationTokenAddress);
120120
url.searchParams.set("buyAmountWei", amount.toString());
121-
if (maxSteps) {
121+
if (typeof maxSteps !== "undefined") {
122122
url.searchParams.set("maxSteps", maxSteps.toString());
123123
}
124124

0 commit comments

Comments
 (0)