diff --git a/lib/Exd/Gui/Instance.pm b/lib/Exd/Gui/Instance.pm index e807962..d55ede2 100644 --- a/lib/Exd/Gui/Instance.pm +++ b/lib/Exd/Gui/Instance.pm @@ -727,8 +727,8 @@ sub _on_receive_price($self) { my $price_label = Gtk4::Label->new(undef); $price_label->set_markup("$priceā‚¬"); $box->append($price_label); - $box->append($starting_price_label); - if ( $discount > 2 ) { + if ( defined $discount && $discount > 2 ) { + $box->append($starting_price_label); $box->append($discount_label); } $window_price_discount->set_child($box); diff --git a/me.sergiotarxz.Exd.metainfo.xml b/me.sergiotarxz.Exd.metainfo.xml index 31722b9..b1f8478 100644 --- a/me.sergiotarxz.Exd.metainfo.xml +++ b/me.sergiotarxz.Exd.metainfo.xml @@ -30,6 +30,11 @@ + + +

Make discount to show the previous price

+
+

Make more prominent affiliated printers and supplies and implementing discounts