From 6a1c4cfa854b689e7396fafb972bc8bd5be00955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezi=C5=84ski?= Date: Thu, 26 Oct 2023 22:47:24 +0200 Subject: [PATCH] fix vsr withdaraw (#1893) --- VoteStakeRegistry/components/Account/LockTokensAccount.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VoteStakeRegistry/components/Account/LockTokensAccount.tsx b/VoteStakeRegistry/components/Account/LockTokensAccount.tsx index 5fd56d98dd..1176a3f8e0 100644 --- a/VoteStakeRegistry/components/Account/LockTokensAccount.tsx +++ b/VoteStakeRegistry/components/Account/LockTokensAccount.tsx @@ -187,7 +187,8 @@ const LockTokensAccount: React.FC<{ const depositMint = !mint?.supply.isZero() || - config?.account.communityTokenConfig.maxVoterWeightAddin + config?.account.communityTokenConfig.maxVoterWeightAddin || + realm?.account.communityMint ? realm?.account.communityMint : !councilMint?.supply.isZero() ? realm?.account.config.councilMint