fix(budget): show the link controls on an explicit null check

targetId is a number or null; a bare && would render a 0 if it were ever 0 (Sonar S6439).
This commit is contained in:
Maurice
2026-09-25 16:25:30 +02:00
parent 8864edda18
commit 287b84875b
2 changed files with 3 additions and 3 deletions
@@ -100,7 +100,7 @@ export function BookingCostsSection({ reservationId, placeId = null, hintKey = '
<Plus size={14} /> {t('reservations.createExpense')}
</button>
{/* Linking needs the record to exist, so it waits for the first save. */}
{targetId && (
{targetId !== null && (
<CustomSelect
value=""
onChange={value => {