Closed devYuraKim closed 2 months ago
Yes, it is redundant.
In reality, isFixed is essentially performing the same function as setRating, which is to finalize the value when clicked.
Silly me 👀
replace tempRating ? tempRating : rating ? rating : ""
with tempRating || rating || ""
which means if logical operand is truthy then return, if not proceed