Browse Source

minor fix

tags/Baseline_30082024_FRONTEND_UAT
MSI\2Fi 1 year ago
parent
commit
36e36921bf
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      src/components/CreateInvoice/CreateInvoice.tsx
  2. +1
    -1
      src/components/CreateInvoice/ProjectTotalFee.tsx

+ 2
- 1
src/components/CreateInvoice/CreateInvoice.tsx View File

@@ -121,7 +121,8 @@ const CreateInvoice: React.FC = ({
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${accessToken}`
Authorization: `Bearer ${accessToken}`,
Accept: "application/json"
},
body: JSON.stringify(tempData),


+ 1
- 1
src/components/CreateInvoice/ProjectTotalFee.tsx View File

@@ -37,7 +37,7 @@ const ProjectTotalFee: React.FC= ({}) => {
<Divider sx={{ paddingBlockStart: 2 }} />
<Stack direction="row" justifyContent="space-between">
<Typography variant="h6">{t("Project Total Fee")}</Typography>
<Typography>{moneyFormatter.format(projectTotal += amount)}</Typography>
<Typography>{moneyFormatter.format(amount ? projectTotal += amount : projectTotal)}</Typography>
</Stack>
</Stack>
);


Loading…
Cancel
Save