Don't create new Contracts instance if already exists

This commit is contained in:
Nicolas Gotchac 2016-12-10 14:31:20 +01:00
parent 13607d48be
commit 81c5085b35
2 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,10 @@ export default class Contracts {
}
static create (api) {
if (instance) {
return instance;
}
return new Contracts(api);
}

View File

@ -26,7 +26,7 @@ import VerifyIcon from 'material-ui/svg-icons/action/verified-user';
import { EditMeta, DeleteAccount, Shapeshift, SMSVerification, Transfer, PasswordManager } from '~/modals';
import { Actionbar, Button, Page } from '~/ui';
import shapeshiftBtn from '../../../assets/images/shapeshift-btn.png';
import shapeshiftBtn from '~/../assets/images/shapeshift-btn.png';
import Header from './Header';
import Transactions from './Transactions';