From 456539ce90c0ce8583fa400bee65106fe8d9e3ae Mon Sep 17 00:00:00 2001 From: Nathaniel Parke Date: Tue, 11 May 2021 16:59:38 +0800 Subject: [PATCH] Fix creating open orders account logic --- src/components/SwapWormholeDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SwapWormholeDialog.js b/src/components/SwapWormholeDialog.js index 72b0f22..b32bb53 100644 --- a/src/components/SwapWormholeDialog.js +++ b/src/components/SwapWormholeDialog.js @@ -210,7 +210,7 @@ export default function SwapWormholeDialog({ // If we have an open orderes account use it. It doesn't matter which // one we use. const addr = openOrders[0] ? openOrders[0].address : undefined; - return [addr, addr !== undefined]; + return [addr, addr === undefined]; })(); let signers = [];