Skip to content

Commit

Permalink
Restrict vault disabled checks for SOL vault
Browse files Browse the repository at this point in the history
  • Loading branch information
leonkho committed Jan 16, 2024
1 parent 3840496 commit 3e9e164
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ const VaultV2WithdrawForm: React.FC<VaultV2WithdrawFormProps> = ({
if (active) {
return (
<ActionButton
disabled={!isInputNonZero}
disabled={
vaultOption === "rSOL-THETA"
? !isInputNonZero
: Boolean(error) || !isInputNonZero
}
onClick={() => {
onFormSubmit();
}}
Expand Down Expand Up @@ -389,6 +393,7 @@ const VaultV2WithdrawForm: React.FC<VaultV2WithdrawFormProps> = ({
onFormSubmit,
setShowConnectModal,
vaultActionForm.withdrawOption,
vaultOption,
]);

const formFooter = useMemo(() => {
Expand Down

0 comments on commit 3e9e164

Please sign in to comment.