Minor: mark reducer arguments as Readonly
This commit is contained in:
parent
0c99604585
commit
eff2318157
11 changed files with 23 additions and 23 deletions
|
@ -163,8 +163,8 @@ function getEmptyState(): SafetyNumberStateType {
|
|||
}
|
||||
|
||||
export function reducer(
|
||||
state: SafetyNumberStateType = getEmptyState(),
|
||||
action: SafetyNumberActionType
|
||||
state: Readonly<SafetyNumberStateType> = getEmptyState(),
|
||||
action: Readonly<SafetyNumberActionType>
|
||||
): SafetyNumberStateType {
|
||||
if (action.type === TOGGLE_VERIFIED_PENDING) {
|
||||
const { contact } = action.payload;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue