Commit c46702f
committed
Subject: Update
Body:
Updated the assignment of the `name` variable in `CascadeAuthState.razor` to prevent potential `NullReferenceException`. The new code uses the null-conditional operator to check if the user has a claim of type "name". If not, it assigns an empty string to `name` using the null-coalescing operator, ensuring `name` is always assigned a string value.name variable assignment in CascadeAuthState.razor
1 parent 92292c6 commit c46702f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments