From 3834a8fdd885ff476527f975fb1c0803a765a954 Mon Sep 17 00:00:00 2001 From: Derek Liang Date: Mon, 19 Jul 2021 21:27:24 +0000 Subject: [PATCH] update documentation for updateGroup function --- src/update-function/update-group.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/update-function/update-group.ts b/src/update-function/update-group.ts index ba3f1291..b4ea5d1f 100644 --- a/src/update-function/update-group.ts +++ b/src/update-function/update-group.ts @@ -66,7 +66,7 @@ const groupUpdateFn = updateGroup( { email: (email, parentGroup) => parentGroup.controls.name.isInvalid - ? setValue('', email) + ? setValue(email, '') : email, }, ); @@ -101,7 +101,7 @@ const groupUpdateFn = updateGroup( { email: (email, parentGroup) => parentGroup.controls.name.isInvalid - ? setValue('', email) + ? setValue(email, '') : email, }, ], @@ -137,7 +137,7 @@ const updatedState = updateGroup( { email: (email, parentGroup) => parentGroup.controls.name.isInvalid - ? setValue('', email) + ? setValue(email, '') : email, }, ); @@ -174,7 +174,7 @@ const updatedState = updateGroup( { email: (email, parentGroup) => parentGroup.controls.name.isInvalid - ? setValue('', email) + ? setValue(email, '') : email, }, ],