Skip to content

Commit

Permalink
Fixed a Error
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Jan 2, 2023
1 parent 5ff64a1 commit 11f4983
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OnboardingSPA/components/SocialMediaForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ const SocialMediaForm = ({ socialData, setSocialData, setIsValidSocials, isSocia
}
}

setDataAndActiveErrorState( data, activeError);
setDataAndActiveErrorState(data, socialInput, activeError);
}

const setDataAndActiveErrorState = (data, activeError) => {

const setDataAndActiveErrorState = (data, socialInput, activeError) => {
if (!data){
var activeErrorFiltered = activeError.filter(function (item) {
return item !== socialInput
Expand Down

0 comments on commit 11f4983

Please sign in to comment.