1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

remove unused field from getAccountLoader

This commit is contained in:
Szymon Lesisz 2018-12-17 19:19:32 +01:00
parent f24f0b33ea
commit f9f1b6758e

View File

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