#Ammar - Latest Charge on PI

1 messages · Page 1 of 1 (latest)

fallen crag
#

The most recent should be the first in the list. You can confirm this by looking at the created timestamp on these Charges

weary sentinel
#

Ok, but the first() method should return the latest charge from the charges list.

fallen crag
#

What charge is it currently returning for you?

#

Is it different from the first charge that is actually in the charges array?

weary sentinel
#

Not sure. I am writing the code now. And I found charges is a list. So I tried first and I tried last

#

Just wanted to make sure I use the right one.

#

No worries anyway. All sorted now thanks!