Skip to content

Commit

Permalink
fix: disable button when name is not provided (#3613)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyyeva authored Nov 10, 2022
1 parent 76e6184 commit 9ecce55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/pages/providers/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ export default function ProvidersEditDetails() {
<div className='pt-5 pb-3'>
<button
disabled={
clientSecret.length === 0 && name === provider?.name
clientSecret.length === 0 &&
(name === provider?.name || name.length === 0)
}
type='submit'
className='inline-flex items-center rounded-md border border-transparent bg-black px-4 py-2 text-xs font-medium text-white shadow-sm hover:bg-gray-800 disabled:cursor-not-allowed disabled:opacity-30'
Expand Down

0 comments on commit 9ecce55

Please sign in to comment.