Skip to content

Commit

Permalink
fixing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed May 30, 2024
1 parent 1b8d1f0 commit 0cc5ccd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/admin/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const App = () => {
edit={modules.fundingProgramme.Edit}
show={modules.fundingProgramme.Show}
create={modules.fundingProgramme.Create}
icon={() => <Icon className="h-8 w-8" name={IconNames.FUJDING_PROGRAMMES} />}
icon={() => <Icon className="h-8 w-8" name={IconNames.FUNDING_PROGRAMMES} />}
options={{ label: "Funding Programmes" }}
/>
<Resource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useT } from "@transifex/react";
import { isEqual } from "lodash";
import { useMemo } from "react";

import { getFormEntries } from "@/components/extensive/WizardForm/FormSummaryRow";
Expand Down Expand Up @@ -50,7 +51,7 @@ export default function useFormChanges(current: any, changed: any, steps: FormSt
title: entry.title,
type: entry.type,
currentValue,
newValue: currentValue === newValue ? undefined : newValue
newValue: isEqual(currentValue, newValue) ? undefined : newValue
};
})
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/extensive/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export enum IconNames {
FORMS = "forms",
APPLICATIONS = "applications",
REPORTING_FRAMEWORKS = "reporting-frameworks",
FUJDING_PROGRAMMES = "funding-programmes",
FUNDING_PROGRAMMES = "funding-programmes",
PITCHES = "pitches",
ORGANISATIONS = "organisations",
USERS = "users",
Expand Down

0 comments on commit 0cc5ccd

Please sign in to comment.