From 5329460d89864b2616dd246f0efabd0ef5b162c2 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Thu, 20 Sep 2018 09:12:19 +0200 Subject: [PATCH] Add default color values --- .../AccountSend/components/PendingTransactions/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/Wallet/views/AccountSend/components/PendingTransactions/index.js b/src/views/Wallet/views/AccountSend/components/PendingTransactions/index.js index 1fedbc22..4f92912f 100644 --- a/src/views/Wallet/views/AccountSend/components/PendingTransactions/index.js +++ b/src/views/Wallet/views/AccountSend/components/PendingTransactions/index.js @@ -62,7 +62,11 @@ class PendingTransactions extends Component { } getTransactionIconColors(tx: any) { - let iconColors = { }; + let iconColors = { + color: '', + background: '', + borderColor: '', + }; const bgColorFactory = new ColorHash({ lightness: 0.7 }); const textColorFactory = new ColorHash(); @@ -92,7 +96,6 @@ class PendingTransactions extends Component { borderColor: bgColorFactory.hex(tx.network), }; } - return iconColors; }