diff --git a/src/api/public.ts b/src/api/public.ts index d365179..597da19 100644 --- a/src/api/public.ts +++ b/src/api/public.ts @@ -79,7 +79,7 @@ export const applicationSubmitFn = async (payload: ApplicationBaseInput) => { return response.data; }; -export const aditionalDataSubmitFn = async (payload: ApplicationBaseInput) => { +export const additionalDataSubmitFn = async (payload: ApplicationBaseInput) => { const response = await publicApi.post("applications/complete-information-request", payload); return response.data; }; diff --git a/src/components/CreditLinesTable.tsx b/src/components/CreditLinesTable.tsx index 23f5f16..b96be9c 100644 --- a/src/components/CreditLinesTable.tsx +++ b/src/components/CreditLinesTable.tsx @@ -59,22 +59,20 @@ export function CreditLinesTable({ rows, currency, isLoading, selectOption }: Cr {t("Additional Information")} {rows.map((row) => ( - {`${row.additional_information}`} + {row.additional_information} ))} {t("Interest rate")} {rows.map((row) => ( - {`${row.interest_rate}`} + {row.interest_rate} ))} {t("Other fees")} {rows.map((row) => ( - {`${row.other_fees_description}`} + {row.other_fees_description} ))} diff --git a/src/components/CreditProductConfirmation.tsx b/src/components/CreditProductConfirmation.tsx index 7d0fe07..8ad4814 100644 --- a/src/components/CreditProductConfirmation.tsx +++ b/src/components/CreditProductConfirmation.tsx @@ -95,9 +95,9 @@ export function CreditProductConfirmation({ creditProduct, application }: Credit {isLoan && ( {formatDateFromString(application.calculator_data.payment_start_date)} )} - {`${creditProduct.interest_rate}`} + {creditProduct.interest_rate} - {`${creditProduct.other_fees_description}`} + {creditProduct.other_fees_description} diff --git a/src/components/CreditProductReview.tsx b/src/components/CreditProductReview.tsx index 78a2472..2e881d9 100644 --- a/src/components/CreditProductReview.tsx +++ b/src/components/CreditProductReview.tsx @@ -84,9 +84,9 @@ export function CreditProductReview({ application, className }: CreditProductRev )} {isLoan && {formatDateFromString(application.payment_start_date)}} - {`${creditProduct.interest_rate}`} + {creditProduct.interest_rate} - {`${creditProduct.other_fees_description}`} + {creditProduct.other_fees_description} diff --git a/src/components/DataDisplay.tsx b/src/components/DataDisplay.tsx index 73213e4..cfd7f76 100644 --- a/src/components/DataDisplay.tsx +++ b/src/components/DataDisplay.tsx @@ -39,7 +39,7 @@ export function DataDisplay({ data, className }: DataDisplayProps) { return ( {Object.keys(data).map((key) => ( - + {formatKey(key)} {formatValue(data[key])} diff --git a/src/components/DataTable.tsx b/src/components/DataTable.tsx index 6ce0991..79cdf03 100644 --- a/src/components/DataTable.tsx +++ b/src/components/DataTable.tsx @@ -300,7 +300,7 @@ export function DataTable({ /> {visibleRows.map((row: T, index) => ( - + {headCells.map((headCell) => ( {headCell.type === "label" && renderValue(row, headCell)} diff --git a/src/components/LoansTable.tsx b/src/components/LoansTable.tsx index a978964..0775f1a 100644 --- a/src/components/LoansTable.tsx +++ b/src/components/LoansTable.tsx @@ -60,22 +60,20 @@ export function LoansTable({ rows, amountRequested, currency, isLoading, selectO {t("Additional Information")} {rows.map((row) => ( - {`${row.additional_information}`} + {row.additional_information} ))} {t("Interest rate")} {rows.map((row) => ( - {`${row.interest_rate}`} + {row.interest_rate} ))} {t("Other fees")} {rows.map((row) => ( - {`${row.other_fees_description}`} + {row.other_fees_description} ))} diff --git a/src/hooks/useSubmitAdditionalData.ts b/src/hooks/useSubmitAdditionalData.ts index 410bb49..799f59f 100644 --- a/src/hooks/useSubmitAdditionalData.ts +++ b/src/hooks/useSubmitAdditionalData.ts @@ -4,7 +4,7 @@ import axios from "axios"; import { useSnackbar } from "notistack"; import { useNavigate } from "react-router-dom"; -import { aditionalDataSubmitFn } from "../api/public"; +import { additionalDataSubmitFn } from "../api/public"; import { DISPATCH_ACTIONS, QUERY_KEYS } from "../constants"; import type { ApplicationBaseInput, IApplicationResponse } from "../schemas/application"; import useApplicationContext from "./useApplicationContext"; @@ -26,7 +26,7 @@ export default function useSubmitAdditionalData(): IUseSubmitAdditionalData { unknown, ApplicationBaseInput, unknown - >((payload) => aditionalDataSubmitFn(payload), { + >((payload) => additionalDataSubmitFn(payload), { onSuccess: (data) => { queryClient.setQueryData([QUERY_KEYS.application_uuid, data.application.uuid], data); applicationContext.dispatch({ type: DISPATCH_ACTIONS.SET_APPLICATION, payload: data }); diff --git a/src/pages/fi/StageOne.tsx b/src/pages/fi/StageOne.tsx index c167078..a962198 100644 --- a/src/pages/fi/StageOne.tsx +++ b/src/pages/fi/StageOne.tsx @@ -50,7 +50,7 @@ export function StageOne() { rel="noreferrer" label={t("View data in SECOP II")} component={MUILink} - href={`${application?.award.source_url}`} + href={application?.award.source_url} /> {application && ( diff --git a/src/pages/fi/StageThree.tsx b/src/pages/fi/StageThree.tsx index e01ebc7..c88ebac 100644 --- a/src/pages/fi/StageThree.tsx +++ b/src/pages/fi/StageThree.tsx @@ -51,7 +51,7 @@ export function StageThree() { rel="noreferrer" label={t("View data in SECOP II")} component={MUILink} - href={`${application?.award.source_url}`} + href={application?.award.source_url} /> {application && }
diff --git a/src/pages/ocp/ApplicationDetail.tsx b/src/pages/ocp/ApplicationDetail.tsx index b67e679..6b0d1c7 100644 --- a/src/pages/ocp/ApplicationDetail.tsx +++ b/src/pages/ocp/ApplicationDetail.tsx @@ -66,7 +66,7 @@ export function ApplicationDetail({ application, readonly }: ApplicationDetailPr rel="noreferrer" label={t("View data in SECOP II")} component={MUILink} - href={`${application.award.source_url}`} + href={application.award.source_url} /> diff --git a/src/stories/switch/Switch.tsx b/src/stories/switch/Switch.tsx index 86d0fb6..f04eed9 100644 --- a/src/stories/switch/Switch.tsx +++ b/src/stories/switch/Switch.tsx @@ -99,7 +99,7 @@ export function Switch({ const t = useT(); return ( - <FormControl fullWidth className={`${fieldClassName}`}> + <FormControl fullWidth className={fieldClassName}> <FormControlLabel sx={{ alignItems: "flex-start" }} control={