Fix time duration and visuals
This commit is contained in:
@@ -9,13 +9,6 @@ const SleepButton: React.FC<SleepButtonProps> = ({ time }) => {
|
||||
const { activeSession, createSession, endSession, isCreating, isEnding } = useSleepSession();
|
||||
const isSleeping = !!activeSession;
|
||||
|
||||
console.log('DEBUG: SleepButton State:', {
|
||||
activeSession,
|
||||
isSleeping,
|
||||
isCreating,
|
||||
isEnding
|
||||
});
|
||||
|
||||
const handleClick = async () => {
|
||||
try {
|
||||
if (isSleeping && activeSession?.id) {
|
||||
|
||||
Reference in New Issue
Block a user