remove unused field from getAccountLoader

pull/278/head
Szymon Lesisz 6 years ago
parent f24f0b33ea
commit f9f1b6758e

@ -76,7 +76,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
return { return {
type: 'progress', type: 'progress',
title: 'Loading device...', title: 'Loading device...',
shouldRender: false,
}; };
} }
@ -85,7 +84,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
return { return {
type: 'progress', type: 'progress',
title: 'Loading account', title: 'Loading account',
shouldRender: false,
}; };
} }
@ -100,7 +98,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
return { return {
type: 'progress', type: 'progress',
title: 'Authenticating device...', title: 'Authenticating device...',
shouldRender: false,
}; };
} }
// case 2: device is unavailable (created with different passphrase settings) account cannot be accessed // case 2: device is unavailable (created with different passphrase settings) account cannot be accessed
@ -109,7 +106,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
type: 'info', type: 'info',
title: `Device ${device.instanceLabel} is unavailable`, title: `Device ${device.instanceLabel} is unavailable`,
message: 'Change passphrase settings to use this device', message: 'Change passphrase settings to use this device',
shouldRender: false,
}; };
} }
@ -118,7 +114,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
type: 'info', type: 'info',
title: `Device ${device.instanceLabel} is disconnected`, title: `Device ${device.instanceLabel} is disconnected`,
message: 'Connect device to load accounts', message: 'Connect device to load accounts',
shouldRender: false,
}; };
} }
@ -127,7 +122,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
return { return {
type: 'info', type: 'info',
title: 'Account does not exist', title: 'Account does not exist',
shouldRender: false,
}; };
} }
@ -135,7 +129,6 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
return { return {
type: 'progress', type: 'progress',
title: 'Loading account', title: 'Loading account',
shouldRender: false,
}; };
}; };

Loading…
Cancel
Save