diff --git a/src/integrations/shared-invite-reply/parts/response-actions.tsx b/src/integrations/shared-invite-reply/parts/response-actions.tsx index f9dbd8a4d..0e0800791 100644 --- a/src/integrations/shared-invite-reply/parts/response-actions.tsx +++ b/src/integrations/shared-invite-reply/parts/response-actions.tsx @@ -45,11 +45,15 @@ const ResponseActions: FC = ({ const accounts = useUserAccounts(); const calFolders = useFoldersByView(FOLDER_VIEW.appointment); const showError = useMemo( - () => find(calFolders[0].children, (item) => item.name === calendarName.toLowerCase()), + () => + find( + calFolders[0].children, + (item) => item.name.toLowerCase() === calendarName.toLowerCase() + ), [calFolders, calendarName] ); const disabled = useMemo( - () => !calendarName || !calendarName.length || showError, + () => !!(calendarName.length === 0 || showError), [calendarName, showError] ); const acceptShare = useCallback( @@ -194,7 +198,7 @@ const ResponseActions: FC = ({ label={t('label.accept', 'Accept')} icon="Checkmark" onClick={acceptShare} - disabled={disabled && false} + disabled={disabled} />