Skip to content

Commit

Permalink
fix disabled styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Nov 22, 2024
1 parent 3021b41 commit 3c8434c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/popup/components/PayWebsiteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ export const PayWebsiteForm = () => {

<Button
type="submit"
className={cn('w-full', !isSubmitting ? 'disabled:opacity-100' : null)}
className={cn(
'w-full',
isSubmitting || !amount || !!errors.amount ? 'opacity-100' : null,
)}
disabled={isSubmitting || !amount || !!errors.amount}
loading={isSubmitting}
aria-label={t('pay_action_pay')}
Expand Down

0 comments on commit 3c8434c

Please sign in to comment.