Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nwc connection page ui #151

Merged
merged 12 commits into from
Nov 1, 2023
5 changes: 4 additions & 1 deletion echo_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ func (svc *Service) AppsNewHandler(c echo.Context) error {

requestMethods = strings.Join(keys, " ")
}
budgetEnabled := maxAmount != "" || budgetRenewal != ""
budgetEnabled := maxAmount != ""
if !budgetEnabled {
budgetRenewal = ""
}
csrf, _ := c.Get(middleware.DefaultCSRFConfig.ContextKey).(string)

user, err := svc.GetUser(c)
Expand Down
4 changes: 2 additions & 2 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const (
)

var nip47MethodDescriptions = map[string]string{
NIP_47_GET_BALANCE_METHOD: "Read your balance.",
NIP_47_GET_BALANCE_METHOD: "Read your balance and transaction history.",
NIP_47_PAY_INVOICE_METHOD: "Send payments from your wallet.",
NIP_47_MAKE_INVOICE_METHOD: "Create invoices on your behalf.",
NIP_47_LOOKUP_INVOICE_METHOD: "Lookup status of created invoices.",
NIP_47_LOOKUP_INVOICE_METHOD: "Lookup statuses of created invoices.",
}

type AlbyMe struct {
Expand Down
Loading
Loading