#1772 - adjustment for PR

This commit is contained in:
Tiago Rodrigues 2018-10-14 14:47:18 -03:00
parent 150cfe7758
commit ffca29a5da
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,6 @@
// @flow
import React from 'react';
import ButtonTransaction from 'component/common/transaction-link';
import { remote } from 'electron';
import moment from 'moment';
type Reward = {
@ -19,8 +18,6 @@ type Props = {
const RewardListClaimed = (props: Props) => {
const { rewards } = props;
moment.locale(remote.app.getLocale());
if (!rewards || !rewards.length) {
return null;
}

View file

@ -1,7 +1,9 @@
/* eslint-disable react/jsx-filename-extension */
/* eslint-disable no-console */
import App from 'component/app';
import SnackBar from 'component/snackBar';
import SplashScreen from 'component/splash';
import moment from 'moment';
import * as ACTIONS from 'constants/action_types';
import { ipcRenderer, remote, shell } from 'electron';
import React from 'react';
@ -148,6 +150,8 @@ document.addEventListener('click', event => {
});
const init = () => {
moment.locale(remote.app.getLocale());
autoUpdater.on('error', error => {
// eslint-disable-next-line no-console
console.error(error.message);
@ -201,3 +205,5 @@ const init = () => {
};
init();
/* eslint-enable no-console */