Let users donate sats via BTCPay Server #176
@ -28,6 +28,7 @@ class Contributions::DonationsController < ApplicationController
|
||||
if params[:currency] == "sats"
|
||||
fiat_amount = nil
|
||||
fiat_currency = nil
|
||||
raucao marked this conversation as resolved
|
||||
amount_sats = params[:amount]
|
||||
else
|
||||
fiat_amount = params[:amount].to_i
|
||||
fiat_currency = params[:currency]
|
||||
|
Loading…
x
Reference in New Issue
Block a user
Isn't a
amount_sats = params[:amount_sats]
missing here?I couldn't see the
amount_sats
being assigned anywhere other than tonil
when a different currency is selected, but it is being used further down in this action.Good catch! Since I did actual donations using sats for the amount, it must have gotten lost for the commit somehow. Added a spec to catch that, since that spec was missing in the first place.