This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Prevent consecutive operator input in CalculatorModal (#3359)
* Fix: Prevent consecutive operator input in CalculatorModal Resolved an issue in the CalculatorModal where consecutive operators could be added, resulting in invalid expressions. - Updated the handleOperator function to ensure only one operator is added at a time. - Replaced the last operator if a new operator is pressed. - Ensured the input behaves like a standard calculator. This change improves the user experience by preventing invalid expressions and aligning the calculator's behavior with user expectations. * Fix: Ensure proper handling of consecutive operators in CalculatorModal * Fix: Correct Detekt style issues in CalculatorModal.kt
- Loading branch information