I’m working on an app that uses a few user inputs to determine if the user qualifies for medical debt relief. There is one use case that seems to produce the correct result on the first attempt, but gets “stuck” on that result if prior inputs are changed. Here’s my app: logic-tree-final.bubbleapps.io/version-test/
The use case I’m focused on is relatively simple. In the state of California, if a user has health insurance, they qualify for debt relief if their medical bill exceeds 10% of their annual income.
Starting from index, this is the step-by-step flow:
- From index, select California and hit Next
- On the next page, select radio button Yes for “Do you have health insurance?”
- This will reveal two additional questions: your annual income and your medical bill amount
- There is a math expression that divides your medical bill amount by your annual income and shows the result in a text box on the right side of the page for testing purposes. This text box shows the Current User’s Bill/Income ratio.
- If you enter any combination that produces a ratio of .1 or greater and hit Next, the next page should show you the result “You QUALIFY” because the medical bill is 10% or greater than your income.
- If you enter any combination that produces a ratio less than .1 and hit Next, the next page should show you the result “You do not qualify” because the medical bill is less than 10% of your income.
This always seems to work on the first try, e.g. if I enter 500 for my income and 500 for my medical bill, resulting in a ratio of 1, the next page says I qualify because 1 > .1 . If I close the tab and click preview on home-page again, go through the flow, but change my numbers to 500 for income and 10 for medical bill (ratio of .02) then hit Next, I still get the “You QUALIFY” result when I should be getting “You do not qualify.” I know the math is being done correctly because I can see the ratio in the text box on the previous page: it shows .02. This error persists unless I wait about 5 minutes and start this process over, at which point the first time I go through the flow is always shows the correct result (whether I qualify or not) but subsequent attempts seem “stuck” on that initial result.
Can anyone explain what’s going on here? Is there some kind of user memory that is causing the first result of the flow to “stick” and override subsequent changes to the user’s data that resets after a 5 min cooldown or something? Any help is much appreciated!