I have two buttons labels: validate
& next
, I have to switch between these two values depending on a lot of booleans ( 9 variables ). I create this const to check if I put the first value or the second:
const isReadyToValidate = isConnected &&
(isCitizen || isNCitizen || isSuperCitizen || isMCitizen || isFCitizen) &&
( !isNCitizenOnly || !inscMode || inscModeSuccess);
but it doesn’t work, I created a table where there are all the cases to display validate
or next
, some to help me how can I achieve this.