Skip to content

Commit

Permalink
fix: if length is 0 actually disable the edit button
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Nov 27, 2023
1 parent b91d09e commit 6cb1b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/routes/edit/[proteinName]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
}
}
}}
disabled={(name !== humanReadableProteinName(entry.name) ||
content !== entry.content) &&
disabled={(name === humanReadableProteinName(entry.name) &&
content === entry.content) ||
name.length === 0}>Edit Protein</Button
>

Expand Down

0 comments on commit 6cb1b68

Please sign in to comment.