Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hudde committed Aug 31, 2023
1 parent 4191ac1 commit 970ae63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: greeks
Title: Sensitivities of Prices of Financial Options and Implied Volatilites
Version: 1.2.0
Version: 1.2.1
Authors@R:
person(given = "Anselm",
family = "Hudde",
Expand Down
8 changes: 7 additions & 1 deletion R/Greeks_UI.R
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,13 @@ Greeks_UI <- function() {
unlist() %>%
unname()

x_bounds <- input[[eval(paste(params_list[[input$x_axis]], "_2", sep = ""))]]
if (input$option_type == "Asian") {
x_bounds <-
input[[eval(paste(params_list[[input$x_axis_asian]], "_2", sep = ""))]]
} else {
x_bounds <-
input[[eval(paste(params_list[[input$x_axis]], "_2", sep = ""))]]
}

x_from <- x_bounds[1]
x_to <- x_bounds[2]
Expand Down
5 changes: 2 additions & 3 deletions man/Greeks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Implied_Volatility.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 970ae63

Please sign in to comment.