From 534d84ef8881923c9a80a2205407b4bf380417d5 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 25 Sep 2019 14:06:50 -0400 Subject: [PATCH] PR clean up --- src/ui/component/i18nMessage/view.jsx | 4 ++-- src/ui/component/rewardSummary/view.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/component/i18nMessage/view.jsx b/src/ui/component/i18nMessage/view.jsx index ed5cf708b..b3fbede42 100644 --- a/src/ui/component/i18nMessage/view.jsx +++ b/src/ui/component/i18nMessage/view.jsx @@ -3,7 +3,7 @@ import React from 'react'; type Props = { tokens: Object, - children: any, + children: string, // e.g. "Read %faq_link% for more detail" }; export default function I18nMessage(props: Props) { @@ -12,7 +12,7 @@ export default function I18nMessage(props: Props) { matchingGroups = message.match(regexp); if (!matchingGroups) { - return {message}; + return message; } const messageSubstrings = props.children.split(regexp), diff --git a/src/ui/component/rewardSummary/view.jsx b/src/ui/component/rewardSummary/view.jsx index 2f81e3cda..7f83cb01e 100644 --- a/src/ui/component/rewardSummary/view.jsx +++ b/src/ui/component/rewardSummary/view.jsx @@ -28,7 +28,7 @@ class RewardSummary extends React.Component { You have %credit_amount% in unclaimed rewards. ) : ( - {__('You have no rewards available, please check')} + __('You have no rewards available.') )}