Skip to content

Commit ef2630b

Browse files
committed
fix: remove defensive checks for sections and require translation structure
1 parent e117935 commit ef2630b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/components/TermsModal/TermsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const TermsModal = ({
157157
returnObjects: true,
158158
});
159159
const introText = `${i18n.t(`${nameNoDash}.intro.text`, { ns: nameNoDash })}`;
160-
const sections = termsObject?.sections || [];
160+
const sections = termsObject.sections;
161161

162162
const closeModal = () => setIsOpen(false);
163163

0 commit comments

Comments
 (0)