
improve this code

 <Row>
                {hasDiscount ? (
                  <>
                    <Col>
                      <Paragraph className="price-discount">
                        {listPrice} {t("home.riyal")}
                      </Paragraph>
                    </Col>
                    <Col>
                      <Paragraph className="discount-amount">
                        {t("home.discount")} %{Math.ceil(+discountAmount)}
                      </Paragraph>
                    </Col>
                  </>
                ) : (
                  <Paragraph className="tabby-cost">
                    {listPrice > tabbyCost
                      ? (listPrice / 4).toFixed(2) + `${t("home.a_month")}`
                      : ""}
                  </Paragraph>
                )}
              </Row>