From 792401815184722e0b1ccd9035cafb3afeb49698 Mon Sep 17 00:00:00 2001 From: flaque Date: Thu, 10 Oct 2024 21:08:31 -0700 Subject: [PATCH] fix quote --- src/lib/buy.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/buy.ts b/src/lib/buy.ts index e78df17..5933538 100644 --- a/src/lib/buy.ts +++ b/src/lib/buy.ts @@ -163,7 +163,7 @@ async function buyOrderAction(options: SfBuyOptions) { console.log( `Found availability from ${c.green(quote.start_at)} to ${c.green(quote.end_at)} (${c.green(formatDuration(durationSeconds * 1000))}) at ${priceLabelUsd} total (${priceLabelPerGPUHour}/GPU-hour)`, ); - didQuote = true; + return; } else if (!priceCents) { const quote = await getQuote({ instanceType: options.type, @@ -185,7 +185,6 @@ async function buyOrderAction(options: SfBuyOptions) { return logAndQuit("Not enough data exists to quote this order."); } priceCents = aggressivePrice; - didQuote = false; } }