From 356442f344698cf7e6896a7395ef11637617114e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezin=CC=81ski?= Date: Mon, 16 Oct 2023 22:08:28 +0200 Subject: [PATCH] fix --- .../components/instructions/CloseMultipleTokenAccounts.tsx | 2 +- .../components/instructions/DistrubtionProgram/CloseVaults.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/dao/[symbol]/proposal/components/instructions/CloseMultipleTokenAccounts.tsx b/pages/dao/[symbol]/proposal/components/instructions/CloseMultipleTokenAccounts.tsx index 486541696d..93e0bb253c 100644 --- a/pages/dao/[symbol]/proposal/components/instructions/CloseMultipleTokenAccounts.tsx +++ b/pages/dao/[symbol]/proposal/components/instructions/CloseMultipleTokenAccounts.tsx @@ -94,7 +94,7 @@ const CloseMultipleTokenAccounts = ({ if ( needToCreateAta && !mintsOfCurrentlyPushedAtaInstructions.find( - (x) => x !== mintPK.toBase58() + (x) => x === mintPK.toBase58() ) ) { const createAtaInstruction = Token.createAssociatedTokenAccountInstruction( diff --git a/pages/dao/[symbol]/proposal/components/instructions/DistrubtionProgram/CloseVaults.tsx b/pages/dao/[symbol]/proposal/components/instructions/DistrubtionProgram/CloseVaults.tsx index c7358c5f58..5e0fa0fc87 100644 --- a/pages/dao/[symbol]/proposal/components/instructions/DistrubtionProgram/CloseVaults.tsx +++ b/pages/dao/[symbol]/proposal/components/instructions/DistrubtionProgram/CloseVaults.tsx @@ -96,7 +96,7 @@ const CloseVaults = ({ if ( !depositAccountInfo && !mintsOfCurrentlyPushedAtaInstructions.find( - (x) => x !== v.mint.toBase58() + (x) => x === v.mint.toBase58() ) ) { // generate the instruction for creating the ATA