From 9f8a402fec20868592f1f68a2634de46496ffbb5 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 2 Jul 2022 07:30:39 +0530 Subject: Upgrade node modules --- src/components/ui/infobox/index.tsx | 6 +++--- src/containers/settings/EditServiceScreen.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx index 91ef88747..976ed5bc4 100644 --- a/src/components/ui/infobox/index.tsx +++ b/src/components/ui/infobox/index.tsx @@ -81,20 +81,20 @@ const styles = (theme: Theme) => ({ }, close: { color: (props: IProps) => - theme.styleTypes[props.type ? props.type : 'primary'].contrast, + theme.styleTypes[props.type || 'primary'].contrast, marginRight: -5, border: 0, background: 'none', }, cta: { borderColor: (props: IProps) => - theme.styleTypes[props.type ? props.type : 'primary'].contrast, + theme.styleTypes[props.type || 'primary'].contrast, borderRadius: theme.borderRadiusSmall, borderStyle: 'solid', borderWidth: 1, background: 'none', color: (props: IProps) => - theme.styleTypes[props.type ? props.type : 'primary'].contrast, + theme.styleTypes[props.type || 'primary'].contrast, marginLeft: 15, padding: [4, 10], fontSize: theme.uiFontSize, diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index 6545c3d7d..93fb4418d 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx @@ -268,7 +268,7 @@ class EditServiceScreen extends Component { userAgentPref: { label: intl.formatMessage(globalMessages.userAgentPref), placeholder: service?.defaultUserAgent, - value: service?.userAgentPref ? service.userAgentPref : '', + value: service?.userAgentPref || '', }, }, }; -- cgit v1.2.3-70-g09d2