diff --git a/src/components/views/messages/DateSeparator.tsx b/src/components/views/messages/DateSeparator.tsx index e6c7af43ab..272afc1823 100644 --- a/src/components/views/messages/DateSeparator.tsx +++ b/src/components/views/messages/DateSeparator.tsx @@ -117,7 +117,7 @@ export default class DateSeparator extends React.Component { } else { return formatFullDateNoTime(date); } - } catch (e) { + } catch (_) { return _t("common|message_timestamp_invalid"); } } diff --git a/test/unit-tests/components/views/messages/DateSeparator-test.tsx b/test/unit-tests/components/views/messages/DateSeparator-test.tsx index 93687be0e7..ebe3ac42d4 100644 --- a/test/unit-tests/components/views/messages/DateSeparator-test.tsx +++ b/test/unit-tests/components/views/messages/DateSeparator-test.tsx @@ -92,7 +92,7 @@ describe("DateSeparator", () => { }); it("renders invalid date separator correctly", () => { - let ts = new Date(-8640000000000004).getTime(); + const ts = new Date(-8640000000000004).getTime(); const { asFragment } = getComponent({ ts }); expect(asFragment()).toMatchSnapshot(); });