bitkit
bitkit copied to clipboard
[Bug]: Toggling unit in Spending Balance or Spending Money screen overrides current value to 20%
Describe the bug
When creating a LN channel via the Quick Setup on either the Spending Balance or Spending Money page (either the page with the slider or manual value entry), tapping the toggle unit button switches between BTC and your other unit (e.g. GBP) but also sets back to the default value of 20% spending. It should only convert the current value and not set back to default.
Reproduce
- Go to Spending Balance page (tap Pay instantly suggestion on home page -> Quick Setup)
- Move the slider to something other than 20%
- Tap the spending balance value
- Value's unit toggles AND values resets to 20% (bad) AND slider doesn't move to reflect the reset to 20% (bad)
- Tap "Enter Amount" button to navigate to "Spending Money" page
- Enter some value in
- Tap the value or the toggle unit button
- Value's unit toggles AND value resets to 20% (bad)
Screenshots / Recording
https://github.com/synonymdev/bitkit/assets/74595920/d401b255-964f-4afe-a2b0-4d76a37b2677
Operating system
Android 13 TKQ1.220829.002
Bitkit version
v1.0.0-beta.113
Log output
No response