Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: wallet UI remove redundant condition check #500

Merged
merged 22 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const DeployModalView = ({ address }: Props) => {
const toastr = new Toastr();

const onDeploy = async () => {
if (!translate) return;
try {
const resp = await deployAccount(address, '0', chainId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const SendModalView = ({ closeModal }: Props) => {

const handleChange = (fieldName: string, fieldValue: string) => {
//Check if input amount does not exceed user balance
if (!translate) return;
setErrors((prevErrors) => ({
...prevErrors,
[fieldName]: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const UpgradeModelView = ({ address }: Props) => {
const toastr = new Toastr();

const onUpgrade = async () => {
if (!translate) return;
try {
const resp = await upgradeAccount(address, '0', chainId);

Expand Down