[DEVICE ONLY] - ERROR TypeError: Cannot read property 'null' of null

This is a classic race condition. loadSavedCards() doesn’t return anything, so nobody has any clue when it has done its work. See this post. You must have a contingency plan in place to deal with i being in an indeterminate state (like a loading spinner).