Skip to content

Commit

Permalink
fix: first load lp deposit approval (#7190)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis authored Jun 20, 2024
1 parent cb2e719 commit a85d45c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ export const AddLiquidityInput: React.FC<AddLiquidityInputProps> = ({
!hasEnoughAssetBalance ||
!hasEnoughRuneBalance ||
isApprovalTxPending ||
(isSweepNeededEnabled && isSweepNeeded === undefined) ||
(isSweepNeededEnabled && isSweepNeeded === undefined && !isApprovalRequired) ||
isSweepNeededError ||
isEstimatedPoolAssetFeesDataError ||
isEstimatedRuneFeesDataError ||
Expand All @@ -1568,7 +1568,7 @@ export const AddLiquidityInput: React.FC<AddLiquidityInputProps> = ({
isSmartContractAccountAddressLoading ||
isAllowanceDataLoading ||
isApprovalTxPending ||
(isSweepNeeded === undefined && isSweepNeededLoading) ||
(isSweepNeeded === undefined && isSweepNeededLoading && !isApprovalRequired) ||
(runeTxFeeCryptoBaseUnit === undefined && isEstimatedPoolAssetFeesDataLoading)
}
onClick={handleDepositSubmit}
Expand Down

0 comments on commit a85d45c

Please sign in to comment.