diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 341a5bf6b..31622d8ef 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -573,6 +573,6 @@ async def api_fiat_as_sats(data: ConversionData): return output else: output[data.from_.upper()] = data.amount - output["sats"] = await fiat_amount_as_satoshis(data.amount, data._from) + output["sats"] = await fiat_amount_as_satoshis(data.amount, data.from_) output["BTC"] = output["sats"] / 100000000 return output