Repository: sunflower-farmers/sunflower-farmers
File: src/features/world/ui/megastore/seasonalstore_components/ItemDetail.tsx (TypeScript)

Code before:
                        className="text-xxs"
                      >
                        {t("megastore.limit", {
                          time: secondsToString(
                            itemInCooldown
                              ? (item.cooldownMs - (createdAt - boughtAt)) /
                                  1000
                              : item.cooldownMs / 1000,
                            {
                              length: "short",
                            },
                          ),
                        })}
                      </Label>
                    ) : (
                      <Label
                        type={itemCrafted ? "danger" : "default"}
                        className="text-xxs"
                      >
                        {t("season.megastore.crafting.limit", {
                          limit: itemCrafted ? 1 : 0,
                        })}
                      </Label>
                    )}

                    {(!isTradeable || isTradeable === undefined) && (
                      <Label
                        type="formula"
                        icon={lockIcon}
                        className="text-xxs"
                      >
                        {t("season.megastore.nonTradeable")}
                      </Label>
                    )}

                    {itemReq && (
                      <div className="flex flex-1 content-start flex-col flex-wrap gap-1">
                        {getKeys(itemReq).map((itemName, index) => {
                          return (
                            <RequirementLabel
                              key={index}
                              type="item"
                              item={itemName}
                              showLabel
                              balance={inventory[itemName] ?? new Decimal(0)}
                              requirement={new Decimal(itemReq[itemName] ?? 0)}
                            />
                          );
                        })}
                      </div>
                    )}

Review comment (suggestion):
```suggestion
                    {!isTradeable && (
```

This explicit undefined check is redundant. It would be covered by !isTradeable.

Code after:
                        className="text-xxs"
                      >
                        {t("megastore.limit", {
                          time: secondsToString(
                            itemInCooldown
                              ? (item.cooldownMs - (createdAt - boughtAt)) /
                                  1000
                              : item.cooldownMs / 1000,
                            {
                              length: "short",
                            },
                          ),
                        })}
                      </Label>
                    ) : (
                      <Label
                        type={itemCrafted ? "danger" : "default"}
                        className="text-xxs"
                      >
                        {t("season.megastore.crafting.limit", {
                          limit: itemCrafted ? 1 : 0,
                        })}
                      </Label>
                    )}

                    {!isTradeable && (
                      <Label
                        type="formula"
                        icon={lockIcon}
                        className="text-xxs"
                      >
                        {t("season.megastore.nonTradeable")}
                      </Label>
                    )}

                    {itemReq && (
                      <div className="flex flex-1 content-start flex-col flex-wrap gap-1">
                        {getKeys(itemReq).map((itemName, index) => {
                          return (
                            <RequirementLabel
                              key={index}
                              type="item"
                              item={itemName}
                              showLabel
                              balance={inventory[itemName] ?? new Decimal(0)}
                              requirement={new Decimal(itemReq[itemName] ?? 0)}
                            />
                          );
                        })}
                      </div>
                    )}