From 6546f98e187202f2553fee2451df7af0a91c0aee Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 22 Jul 2020 20:01:14 +0100 Subject: [PATCH 1/2] Fix BaseAvatar wrongly using Buttons when it needs not Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/avatars/BaseAvatar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/avatars/BaseAvatar.tsx b/src/components/views/avatars/BaseAvatar.tsx index 7f30a7a377..4c6fde19eb 100644 --- a/src/components/views/avatars/BaseAvatar.tsx +++ b/src/components/views/avatars/BaseAvatar.tsx @@ -134,7 +134,7 @@ const BaseAvatar = (props: IProps) => { aria-hidden="true" /> ); - if (onClick !== null) { + if (onClick) { return ( { } } - if (onClick !== null) { + if (onClick) { return ( { }; export default BaseAvatar; -export type BaseAvatarType = React.FC; \ No newline at end of file +export type BaseAvatarType = React.FC; From 38e93469d3407bd07d3718a9ab9a94780eec096c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 23 Jul 2020 09:01:44 +0100 Subject: [PATCH 2/2] Fix broken test Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- test/components/views/messages/TextualBody-test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/components/views/messages/TextualBody-test.js b/test/components/views/messages/TextualBody-test.js index 1f0749aff5..07cd51edbd 100644 --- a/test/components/views/messages/TextualBody-test.js +++ b/test/components/views/messages/TextualBody-test.js @@ -205,9 +205,8 @@ describe("", () => { expect(content.html()).toBe('' + 'Hey ' + '' + - 'Member' + + 'Member' + ''); }); });