Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Function Active zone minutes

ANSWERED

Hello, I would like to know if this function acquires active zone minutes correctly.

 

let activeMinutesValue = (userActivity.today.adjusted["activeZoneMinute"] || 0);
txt_active_minutes.text = activeMinutesValue;

 

Thanks

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

No, it's more like this:

 

import { today } from "user-activity";

let activeMinutesValue = (today.adjusted.activeZoneMinutes.total || 0);

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

No, it's more like this:

 

import { today } from "user-activity";

let activeMinutesValue = (today.adjusted.activeZoneMinutes.total || 0);
Best Answer
0 Votes