Skip to content

Commit ad4a5bb

Browse files
committed
Get the beep value of the countdown the same way we store it
1 parent cea4a64 commit ad4a5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domain/src/main/java/xyz/aprildown/timer/domain/entities/BehaviourEntity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ fun BehaviourEntity.toCountAction(): CountAction {
330330
require(type == BehaviourType.COUNT)
331331
return CountAction(
332332
times = str1.toIntOrNull() ?: CountAction.DEFAULT_TIMES,
333-
beep = str2.toIntOrNull() == 1,
333+
beep = str2 == "1",
334334
)
335335
}
336336

0 commit comments

Comments
 (0)