diff options
| -rw-r--r-- | gui/packages/desktop/src/renderer/components/NotificationArea.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/packages/desktop/src/renderer/components/NotificationArea.js b/gui/packages/desktop/src/renderer/components/NotificationArea.js index d31308beed..646dd236c2 100644 --- a/gui/packages/desktop/src/renderer/components/NotificationArea.js +++ b/gui/packages/desktop/src/renderer/components/NotificationArea.js @@ -133,7 +133,7 @@ export default class NotificationArea extends Component<Props, State> { return { visible: true, type: 'expires-soon', - timeLeft: accountExpiry.remainingTime(), + timeLeft: NotificationArea._capitalizeFirstLetter(accountExpiry.remainingTime()), }; } @@ -144,6 +144,12 @@ export default class NotificationArea extends Component<Props, State> { } } + static _capitalizeFirstLetter(initialString: string): string { + return initialString.length > 0 + ? initialString.charAt(0).toUpperCase() + initialString.slice(1) + : ''; + } + render() { return ( <NotificationBanner style={this.props.style} visible={this.state.visible}> |
