mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-20 14:06:27 +00:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user