Update ConnectionModal.tsx

This commit is contained in:
Egor
2026-01-20 04:35:56 +03:00
committed by GitHub
parent f90bfc167d
commit 7dd340217f

View File

@@ -342,7 +342,7 @@ export default function ConnectionModal({ onClose }: ConnectionModalProps) {
<p className="text-sm text-dark-200 leading-snug">
{getLocalizedText(selectedApp.installationStep.description)}
</p>
{selectedApp.installationStep.buttons?.length > 0 && (
{selectedApp.installationStep.buttons && selectedApp.installationStep.buttons.length > 0 && (
<div className="flex flex-wrap gap-2 mt-2">
{selectedApp.installationStep.buttons.filter(btn => isValidExternalUrl(btn.buttonLink)).map((btn, idx) => (
<a