-
Notifications
You must be signed in to change notification settings - Fork 65
prevLoanType
is referenced, but is not defined.
#661
Comments
prevLoanType
if referenced, but is not defined.prevLoanType
is referenced, but is not defined.
I don't know when or why it was removed, but I can give insight into why it existed. I'm going off memory, but when a user changed from parameters which would result in a jumbo loan to parameters that would not, we wanted to make sure to "drop" them into the non-jumbo loan category that matched the jumbo loan category that they had just "left". So, the script would grab the current loan type as I haven't worked on the project in a long time (18th months?), so I don't know at all if that is still a desired behavior or if that line was taken out for some specific reason... but it seems to me if it were added to the beginning of |
@mistergone Cool, thanks for the background! I think I'm missing an API key to test this change locally, but maybe I'll hit you on chat for it if someone else doesn't get to this. |
Do you have capacity to fix this issue? I am happy to work with you on the details and testing to make sure it works. I have been trying to hit up @virginiacc to fix a related bug (which I don't know, may have been made worse with this line getting removed) but I'm sure she's love it if you could fix it instead! GHE/OAH/OAH-notes/issues/1125 |
In the past, prevLoanType was defined, so there was no problem when it was checked for a value. However, L:415 has since been removed, so it looks like
prevLoanType
is undefined andif ( prevLoanType === 'fha-hb' ) {
will always be false.@contolini and @mistergone you seem to have been working in this area, do you know where
prevLoanType
should be grabbing its value? Not pointing fingers—I can't find where it was actually removed.The text was updated successfully, but these errors were encountered: