I'm using this code
data?.response[0]?.Transaction[0]?.UID;
here Transaction
key is not available, i'm getting
ERROR TypeError: Cannot read properties of undefined (reading '0')
I was trying to check for null or undefined using Optional Chaining
rather than checking it with if
.