Skip to content

Commit 871bd7a

Browse files
authored
fix: sgho deposit button (#2495)
1 parent 354b1b2 commit 871bd7a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/components/transactions/Warnings/ChangeNetworkWarning.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const ChangeNetworkWarning = ({
2929

3030
const handleSwitchNetwork = () => {
3131
trackEvent(GENERAL.SWITCH_NETWORK, { funnel, ...event?.eventParams, network: networkName });
32-
console.log('switchNetwork', chainId);
3332
switchNetwork(chainId);
3433
};
3534
return (

src/hooks/stake/useUmbrellaSummary.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ const formatStakeData = (
114114
runningTotal = runningTotal.plus(stakeTokenTotalSupply);
115115
runningTotalUsd = runningTotalUsd.plus(totalSupplyUsd);
116116

117-
console.log('stakeItem', stakeItem);
118117
let matchingReserve: FormattedReservesAndIncentives | undefined;
119118
if (stakeItem.underlyingIsStataToken) {
120119
matchingReserve = reserves.find(

src/modules/reserve-overview/Gho/SavingsGho.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,14 @@ export const SavingsGho = () => {
165165
gradientBorder={isUnstakeWindowActive}
166166
>
167167
<Stack direction="row" gap={1} sx={{ width: '100%' }}>
168-
{stakeUserData.underlyingTokenUserBalance !== '0' && (
169-
<Button fullWidth variant="contained" onClick={() => openSavingsGhoDeposit()}>
170-
<Trans>Deposit</Trans>
171-
</Button>
172-
)}
168+
<Button
169+
fullWidth
170+
variant="contained"
171+
disabled={stakeUserData.underlyingTokenUserBalance === '0'}
172+
onClick={() => openSavingsGhoDeposit()}
173+
>
174+
<Trans>Deposit</Trans>
175+
</Button>
173176
{stakeUserData.stakeTokenUserBalance !== '0' && (
174177
<Button fullWidth variant="outlined" onClick={() => openSavingsGhoWithdraw()}>
175178
<Trans>Withdraw</Trans>

0 commit comments

Comments
 (0)