Skip to content

Commit 3d1c76c

Browse files
committed
refactor: fix sleep-timer type issue
1 parent 5129e08 commit 3d1c76c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build_docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: Build and push main image
33
on:
44
push:
55
tags:
6-
- "*"
6+
- '*'
77

88
jobs:
99
push-store-image:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: "Checkout GitHub Action"
13+
- name: 'Checkout GitHub Action'
1414
uses: actions/checkout@v6
1515

16-
- name: "Login to GitHub Container Registry"
16+
- name: 'Login to GitHub Container Registry'
1717
uses: docker/login-action@v4
1818
with:
1919
registry: ghcr.io
@@ -26,9 +26,9 @@ jobs:
2626
- name: Set up Docker Buildx
2727
uses: docker/setup-buildx-action@v4
2828

29-
- name: "Build and push Inventory Image"
29+
- name: 'Build and push Inventory Image'
3030
run: |
31-
IMAGE_NAME="ghcr.io/remvze/moodist"
31+
IMAGE_NAME='ghcr.io/remvze/moodist'
3232
3333
GIT_TAG=${{ github.ref }}
3434
GIT_TAG=${GIT_TAG#refs/tags/}

src/components/modals/sleep-timer/sleep-timer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {
4040
[totalSeconds, timeSpent],
4141
);
4242

43-
const timerId = useRef<ReturnType<typeof setInterval>>();
43+
const timerId = useRef<ReturnType<typeof setInterval> | null>(null);
4444

4545
const isPlaying = useSoundStore(state => state.isPlaying);
4646
const play = useSoundStore(state => state.play);

0 commit comments

Comments
 (0)