Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculator: Fix base prefix logic for zero results (#10778)
Previously, `/calculate` would fail to include the correct base prefix (`0x`, `0b`, `0o`) when the result was `0` because the code used a falsy check (`if (result)`). This commit replaces that condition with `if (Number.isFinite(result))`, ensuring zero is properly displayed in the requested base.
- Loading branch information