mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
Fix empty balance selector, warn on LUD18 support
This commit is contained in:
@@ -262,7 +262,9 @@ export const SendScreen: FC<WalletStackScreenProps<'Send'>> = observer(
|
||||
setMintBalanceToSendFrom(availableBalances[0])
|
||||
setIsAmountEndEditing(true)
|
||||
// We do not make memo focus mandatory
|
||||
onMemoEndEditing()
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
||||
// Show mint selector
|
||||
setIsMintSelectorVisible(true)
|
||||
|
||||
} catch (e: any) {
|
||||
handleError(e)
|
||||
@@ -272,8 +274,11 @@ export const SendScreen: FC<WalletStackScreenProps<'Send'>> = observer(
|
||||
|
||||
const onMemoEndEditing = function () {
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
|
||||
|
||||
// Show mint selector
|
||||
setIsMintSelectorVisible(true)
|
||||
if (availableMintBalances.length > 0) {
|
||||
setIsMintSelectorVisible(true)
|
||||
}
|
||||
setIsMemoEndEditing(true)
|
||||
}
|
||||
|
||||
|
||||
@@ -293,6 +293,10 @@ const onAmountEndEditing = async function () {
|
||||
return
|
||||
}
|
||||
|
||||
if (lnurlPayParams.payerData) {
|
||||
infoMessage(`Minibits does not yet support entering of payer identity data (LUD18).`)
|
||||
}
|
||||
|
||||
setIsLoading(true)
|
||||
const encoded = await LnurlClient.getInvoice(lnurlPayParams, amount * 1000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user