Skip to content

Commit

Permalink
fix(deployment): validate max deposit amount correctly
Browse files Browse the repository at this point in the history
closes #603
  • Loading branch information
ygrishajev committed Jan 8, 2025
1 parent ff25f4c commit 84a12e0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
**/.git

**/.env.local
**/.env.local.*
**/.env.test
**/.env.*.local
**/.env.*.test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ apps/provider-proxy/.env
apps/stats-web/.env
.env.*.local
.env.local
.env.local.*
.env.test

# IDE files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const DeploymentDepositModal: React.FunctionComponent<DeploymentDepositMo
category: AnalyticsCategory.DEPLOYMENTS,
label: "Use depositor to deposit in deployment"
});
} else if (depositData && amountInDenom > depositData?.balance) {
} else if (depositData && amount > depositData?.balance) {
setError(`You can't deposit more than you currently have in your balance. Current balance is: ${depositData?.balance} ${depositData?.label}.`);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/docker/.env.sandbox.docker-compose-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ UserDatabaseCS=postgres://postgres:password@db:5432/console-users
Network=sandbox
POSTGRES_DB_URI: postgres://postgres:password@db:5432/console-users

# API
GITHUB_TOKEN=${GITHUB_TOKEN}

# Deploy Web
API_BASE_URL: http://api:3000
BASE_API_MAINNET_URL: http://api:3000
Expand Down

0 comments on commit 84a12e0

Please sign in to comment.