Use ?? instead of ||

This commit is contained in:
Maximilian Harz 2025-02-10 23:29:58 +01:00
parent 2556d8c047
commit 134d2ef123

View File

@ -15,7 +15,7 @@ export const OnepagerView = ({ item }: { item: Item }) => {
{item.user_created?.first_name && <ContactInfoView heading='Du hast Fragen?' item={item} />} {item.user_created?.first_name && <ContactInfoView heading='Du hast Fragen?' item={item} />}
{/* Description Section */} {/* Description Section */}
<div className='tw-my-10 tw-mt-2 tw-px-6 tw-text-sm '> <div className='tw-my-10 tw-mt-2 tw-px-6 tw-text-sm '>
<TextView itemId={item.id} rawText={item.text || 'Keine Beschreibung vorhanden'} /> <TextView itemId={item.id} rawText={item.text ?? 'Keine Beschreibung vorhanden'} />
</div> </div>
{/* Next Appointment Section */} {/* Next Appointment Section */}
{item.next_appointment && ( {item.next_appointment && (