Skip to content

Commit

Permalink
fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
oohwooh committed Jul 18, 2024
1 parent 9a48b41 commit ca1d16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/events/[event]/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Notification({event}) {
/>
<Button
isLoading={isLoading}
disabled={smsBody.length <= MAX_SMS_LENGTH || !(smsBody || (emailBody && emailSubject))}
disabled={smsBody.length <= MAX_SMS_LENGTH && !(smsBody || (emailBody && emailSubject))}
onClick={async () => {
success(`Notification sent.`);
setIsLoading(true);
Expand Down

0 comments on commit ca1d16e

Please sign in to comment.