mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
REF: deepscan
This commit is contained in:
parent
5b662004db
commit
4a30683084
@ -230,8 +230,8 @@ export default class Lnurl {
|
||||
}
|
||||
|
||||
// setting the payment screen with the parameters
|
||||
const min = Math.ceil((data?.minSendable ?? 0) / 1000);
|
||||
const max = Math.floor((data?.maxSendable ?? 0) / 1000);
|
||||
const min = Math.ceil((data.minSendable ?? 0) / 1000);
|
||||
const max = Math.floor((data.maxSendable ?? 0) / 1000);
|
||||
|
||||
this._lnurlPayServicePayload = {
|
||||
callback: data.callback,
|
||||
|
@ -35,7 +35,7 @@ const LnurlPay: React.FC = () => {
|
||||
const route = useRoute<RouteProp<Record<string, RouteParams>, string>>();
|
||||
const { walletID, lnurl } = route.params;
|
||||
const wallet = wallets.find(w => w.getID() === walletID) as LightningCustodianWallet;
|
||||
const [unit, setUnit] = useState<BitcoinUnit>(wallet.getPreferredBalanceUnit());
|
||||
const [unit, setUnit] = useState<BitcoinUnit>(wallet?.getPreferredBalanceUnit() ?? BitcoinUnit.BTC);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
const [_LN, setLN] = useState<Lnurl | undefined>();
|
||||
const [payButtonDisabled, setPayButtonDisabled] = useState<boolean>(true);
|
||||
|
Loading…
Reference in New Issue
Block a user