Skip to content

Commit 57dc1cd

Browse files
committed
fix linting
1 parent 455b9ea commit 57dc1cd

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

frontend/src/components/intake/child-information/AddChildPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const AddChild = ({
7878

7979
if (selectedIndexChild >= 0) {
8080
childrens.splice(selectedIndexChild, 1, child);
81-
console.log(child);
8281
if (caseNumber) {
8382
childAPIClient.put({
8483
updatedChild: child,

frontend/src/components/intake/child-information/ChildProviderForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const ChildProviderForm = ({
5757
};
5858

5959
const deleteProvider = (index: number) => {
60+
providers.splice(index, 1);
6061
// this isn't really useful, but it helps refresh the component
6162
// ideally should have something useEffect, but current way of passing data does not work well with it
6263
setProvidersDeleted(providersDeleted + 1);

frontend/src/components/pages/CaseOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ const CaseOverview = (): React.ReactElement => {
425425
};
426426

427427
fetchData();
428-
}, []);
428+
}, [caseNumber]);
429429

430430
switch (sectionIndex) {
431431
case OverviewSection.MAIN_SECTION: {

0 commit comments

Comments
 (0)