02-11-2021 01:32
02-11-2021 01:32
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
Answered! Go to the Best Answer.
02-11-2021 03:08
02-11-2021 03:08
No, it's more like this:
import { today } from "user-activity";
let activeMinutesValue = (today.adjusted.activeZoneMinutes.total || 0);
02-11-2021 03:08
02-11-2021 03:08
No, it's more like this:
import { today } from "user-activity";
let activeMinutesValue = (today.adjusted.activeZoneMinutes.total || 0);