Skip to content

Commit

Permalink
Fixed the duplicate error
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatsiiako committed Dec 26, 2022
1 parent 20050bc commit c556072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/dashboard/DashboardInputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const DashboardInputField = ({
};

function inputPropsAreEqual(prev: DashboardInputFieldProps, next: DashboardInputFieldProps) {
return prev.value === next.value && prev.type === next.type && prev.position === next.position && prev.blurred === next.blurred && prev.override === next.override && prev.duplicate === next.duplicate;
return prev.value === next.value && prev.type === next.type && prev.position === next.position && prev.blurred === next.blurred && prev.override === next.override && prev.isDuplicate === next.isDuplicate;
}

export default React.memo(DashboardInputField, inputPropsAreEqual);

0 comments on commit c556072

Please sign in to comment.