[fix] show connecting to peers popup when no peers at startup

previously was only showing up when there was 0 peers after some
disconnection
but sometimes the app starts and user logs in without being
connected to any peer
this means the peers-summary is nil peers count is nil
This commit is contained in:
Eric Dvorsak 2018-05-31 19:55:15 +02:00 committed by Roman Volosovskyi
parent b38dd8f013
commit ab968dba0e
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@
:db (assoc app-db :db (assoc app-db
:contacts/contacts {} :contacts/contacts {}
:network-status network-status :network-status network-status
:peers-count peers-count :peers-count (or peers-count 0)
:peers-summary peers-summary :peers-summary (or peers-summary [])
:status-module-initialized? (or platform/ios? js/goog.DEBUG status-module-initialized?) :status-module-initialized? (or platform/ios? js/goog.DEBUG status-module-initialized?)
:status-node-started? status-node-started? :status-node-started? status-node-started?
:network network :network network