fix: wrong type

This commit is contained in:
mostafaei2002 2024-06-11 14:58:24 +03:30
parent 8ea2462fe5
commit d3e4220982

View file

@ -196,7 +196,7 @@ impl crate::disk::state::Xvb {
).on_hover_text(slider_help_text);
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Hash, "H/s")).clicked() {
self.amount *= 1000;
self.amount *= 1000.0;
self.manual_donation_metric = ManualDonationMetric::Hash;
}
if ui.add(egui::SelectableLabel::new(self.manual_donation_metric == ManualDonationMetric::Kilo, "kH/s")).clicked() {