REF: deepscan

This commit is contained in:
overtorment 2024-09-08 16:02:32 +01:00
parent 5b662004db
commit 4a30683084
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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);