Skip to content

Commit b946119

Browse files
authored
fixed typo: 'so that saves userAccessModel'
Alternatively, one could write it as follows 'so that it assigns userAccessModel[role] to its own variable'
1 parent 50b75e0 commit b946119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/02-roleBasedAccess.exercise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const canUserAccess = (role: Role, action: Action) => {
143143
* When we call .includes, we're calling it on userAccessModel[role] -
144144
* which is exactly the same type as UserAccessModelValues.
145145
*
146-
* 🕵️‍♂️ Refactor the function so that saves userAccessModel[role]
146+
* 🕵️‍♂️ Refactor the function so that it saves userAccessModel[role]
147147
* into its own variable before calling includes on it.
148148
*
149149
* const possibleActions = userAccessModel[role];

0 commit comments

Comments
 (0)