Skip to content

Commit 597435f

Browse files
committed
refactor(web): address-feedback
1 parent c06f4db commit 597435f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

web/src/pages/NewTransaction/Terms/Deliverable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const Deliverable: React.FC = () => {
7777
};
7878

7979
const fileFootMessage =
80-
"You can attach additional information as a PDF file. Important: the above description must reference " +
80+
"You can attach additional information here. Important: the above description must reference " +
8181
"the relevant parts of the file content.\n" +
8282
(getFileUploaderMsg(Roles.Policy, roleRestrictions) ?? "");
8383

web/src/utils/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,17 @@ export const getFileUploaderMsg = (role: Roles, roleRestrictions?: Role[]) => {
2121

2222
if (!restrictions) return;
2323

24-
return `Allowed file types: [ ${restrictions.restriction.allowedMimeTypes
24+
const typesString = restrictions.restriction.allowedMimeTypes
2525
.map((type) => {
2626
const [prefix, suffix] = type.split("/");
2727
if (!suffix) return prefix ?? null;
2828

2929
return suffix === "*" ? prefix : suffix;
3030
})
31-
.join(", ")} ], Max allowed size: ${(restrictions.restriction.maxSize / (1024 * 1024)).toFixed(2)} MB.`;
31+
.join(", ");
32+
33+
return `Allowed file types: [${typesString}], Max allowed size: ${(
34+
restrictions.restriction.maxSize /
35+
(1024 * 1024)
36+
).toFixed(2)} MB.`;
3237
};

0 commit comments

Comments
 (0)