make optional

This commit is contained in:
Matthias Mair 2024-04-16 21:55:38 +02:00
parent 27ba3627d4
commit 2b5e2867a8
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -42,7 +42,7 @@ export default function PricingPanel({
label: string;
title: string;
visible: boolean;
disabled: boolean | undefined;
disabled?: boolean | undefined;
}): ReactNode {
const is_disabled = disabled === undefined ? false : disabled;
return (