In js, why does the ternary operator only show "new rent" instead of "new group wealth building" when the ternary operator is established?

$("-sharpcontract_remark").text(
        data.data.type==0
            ? ""
                : ""+""+data.data.rentRooms.name
                    +""+data.data.area+"");
Mar.01,2021

data.data.type==0? "new group": "renew rent"
wrap this up
change it to (data.data.type==0? "new group": "renew") + bar


$("-sharpcontract_remark").text(
        (data.data.type==0
             ? ""
                 : "")+""+data.data.rentRooms.name
                     +""+data.data.area+"");
Menu