Skip to content

Commit

Permalink
update buttonText to check length
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklloyd committed Mar 28, 2024
1 parent 5418374 commit f63d098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AuthorizeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ const AuthorizeButton = ({ connection, onConnectionChange }: Props) => {
}

const buttonText =
connection?.service_id === 'microsoft-dynamics-365-business-central'
typeof connection?.service_id === 'string' &&
connection?.service_id.length > 15
? t('Authorize')
: `${t('Authorize')} ${connection.name}`;
return (
Expand Down

0 comments on commit f63d098

Please sign in to comment.