fix case on currency check

This commit is contained in:
Bryan Stitt 2023-07-03 13:30:37 -07:00
parent 8c8080e01d
commit d9c6da74c2

View File

@ -152,7 +152,7 @@ pub async fn user_balance_stripe_post(
let txn = db_conn.begin().await?;
// Assert that it's usd
if intent.currency.to_string() != "USD" || recipient.is_none() {
if intent.currency.to_string() != "usd" || recipient.is_none() {
// In this case I should probably still save it to the database,
// but not increase balance (this should be refunded)
// TODO: I suppose we could send a refund request right away from here