From a28a8d059e21deb8698d256327e3705cf70ab2f7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 2 Feb 2021 12:26:08 -0500 Subject: [PATCH] Ignore updated for user page. Fixes #139 --- src/shared/components/moment-time.tsx | 3 ++- src/shared/components/user.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/components/moment-time.tsx b/src/shared/components/moment-time.tsx index e833805..baa3c25 100644 --- a/src/shared/components/moment-time.tsx +++ b/src/shared/components/moment-time.tsx @@ -10,6 +10,7 @@ interface MomentTimeProps { updated?: string; }; showAgo?: boolean; + ignoreUpdated?: boolean; } export class MomentTime extends Component { @@ -22,7 +23,7 @@ export class MomentTime extends Component { } render() { - if (this.props.data.updated) { + if (!this.props.ignoreUpdated && this.props.data.updated) { return ( {
- {i18n.t('joined')} + {i18n.t('joined')}{' '} +
-- 2.44.1