Skip to content

Commit

Permalink
chore: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Oct 11, 2023
1 parent 0d4d023 commit d675316
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 307 deletions.
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
Loading

0 comments on commit d675316

Please sign in to comment.