Skip to content

Commit 08804cc

Browse files
committed
Fix: updated operator again for clarity
1 parent 18abc33 commit 08804cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const domSeatsToJSON = (seats: ISeat[]) => {
1717
id,
1818
x: +seat.attr(square ? "x" : "cx"),
1919
y: +seat.attr(square ? "y" : "cy"),
20-
label: document.getElementById(`${seat.attr("id")}-label`)?.textContent?.trim() || seatsFromStore[id]?.label,
20+
label: document.getElementById(`${seat.attr("id")}-label`)?.textContent?.trim() ?? seatsFromStore[id]?.label,
2121
status: seat.attr(dataAttributes.status),
2222
category: seat.attr(dataAttributes.category),
2323
square,

0 commit comments

Comments
 (0)