1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Hide message on normal loading

This commit is contained in:
Dan Finlay 2017-06-14 19:36:37 -07:00
parent 1ed5804e4d
commit a80945e730

View File

@ -66,6 +66,8 @@ App.prototype.render = function () {
var props = this.props
const { isLoading, loadingMessage, transForward, network } = props
const isLoadingNetwork = network === 'loading'
const loadMessage = loadingMessage || isLoadingNetwork ?
'Searching for Network' : null
log.debug('Main ui render function')
@ -86,7 +88,7 @@ App.prototype.render = function () {
h(Loading, {
isLoading: isLoading || isLoadingNetwork,
loadingMessage: loadingMessage || 'Searching for Network',
loadingMessage: loadMessage,
}),
// panel content