Update fiat conversion label on donate

This commit is contained in:
tobtoht
2020-12-14 01:59:32 +01:00
parent d1b4db2be4
commit 4a37be1ce7
5 changed files with 18 additions and 21 deletions
+4 -4
View File
@@ -1022,11 +1022,11 @@ void MainWindow::closeEvent(QCloseEvent *event) {
}
void MainWindow::donateButtonClicked() {
double donation = AppContext::prices->convert("EUR", "XMR", m_ctx->featherDonationAmount);
if(donation <= 0)
donation = 1.337;
double donation = AppContext::prices->convert("EUR", "XMR", m_ctx->donationAmount);
if (donation <= 0)
donation = 0.1337;
ui->sendWidget->fill(m_ctx->featherDonationAddress, "Donation to the Feather development team", donation);
ui->sendWidget->fill(m_ctx->donationAddress, "Donation to the Feather development team", donation);
ui->tabWidget->setCurrentIndex(Tabs::SEND);
}