diff --git a/MP.INVE/Pages/Jumper.razor.cs b/MP.INVE/Pages/Jumper.razor.cs index bab174dd..3a32099e 100644 --- a/MP.INVE/Pages/Jumper.razor.cs +++ b/MP.INVE/Pages/Jumper.razor.cs @@ -51,9 +51,10 @@ namespace MP.INVE.Pages if (logged) { + operatore = MIService.ElencoOperatori(); if (operatore != null) { - AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOPeratore)) && (x.authKey == authKey)).SingleOrDefault(); + AnagOperatoriModel? currOpr = operatore.Where(x => (x.MatrOpr == int.Parse(idOPeratore)) && (x.authKey == pw)).SingleOrDefault(); if (currOpr != null) { @@ -66,11 +67,9 @@ namespace MP.INVE.Pages Cognome = currOpr.Cognome, hashAuthKey = hash }; - if (operatore.Count == 1) - { - NavManager.NavigateTo("Acquisizione"); - await localStorage.SetItemAsync("MatrOpr", currOpr); - } + + await localStorage.SetItemAsync("MatrOpr", currOpr); + NavManager.NavigateTo("Acquisizione"); } } }