I\'m trying to update state but get too different errors, also must of search results are about switch case method or only mention to one layer interface and seems my nested sta