Skip to content

Fix ret_value checks#254

Closed
Jasper-Harvey0 wants to merge 2 commits intomainfrom
fix-user-choices
Closed

Fix ret_value checks#254
Jasper-Harvey0 wants to merge 2 commits intomainfrom
fix-user-choices

Conversation

@Jasper-Harvey0
Copy link
Collaborator

Bjorn pointed out that the get float function does not work when given 0.0 or 0 as a value.
Investigation shows that the return value checks simply is ret_val which evaluates to false on 0.0 as its a falsy value.

I have updated the implementation in the ui to explicitly check that ret_val is not None instead.

@clint-lawrence
Copy link
Collaborator

Does this fix this issue also? #213

@jcollins1983
Copy link
Collaborator

I believe all of these things are fixed in my branch that I'm going to revive and get finished #214

@Jasper-Harvey0
Copy link
Collaborator Author

Awesome, I'll close.

@Jasper-Harvey0
Copy link
Collaborator Author

To be completed in #214

@Jasper-Harvey0 Jasper-Harvey0 deleted the fix-user-choices branch March 15, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants