diff --git a/src/components/AuthorizeButton.tsx b/src/components/AuthorizeButton.tsx index 333e7bd..9e2a52e 100644 --- a/src/components/AuthorizeButton.tsx +++ b/src/components/AuthorizeButton.tsx @@ -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 (