Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Chaitanya-Keyal and others added 4 commits January 14, 2026 17:54
…nya-Keyal) (#7363)

### Description

The current streak hour offset validation fails for values like `-5.5`
because `-5.5 % 1` evaluates to `-0.5`, causing the fractional check to
fail.

This PR simplifies the validation logic by multiplying the value by 2
and checking whether the result is an integer. This correctly allows
only whole-hour and half-hour (`.5`) offsets while handling negative
values properly.

<img width="1667" height="1320" alt="Screenshot 2026-01-14 203300"
src="https://github.com/user-attachments/assets/3c5ccef5-a173-4df7-9ff2-037d4417ae10"
/>


### Checks

- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #7204, related PRs #7269, #7362

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](#1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
@pull pull bot locked and limited conversation to collaborators Jan 14, 2026
@pull pull bot added the ⤵️ pull label Jan 14, 2026
@pull pull bot merged commit e04d6e8 into Uncodedtech:master Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants