Bugfix for accounts that have no servers...
This commit is contained in:
parent
0ffadc5ce9
commit
32737ae311
|
@ -34,7 +34,7 @@ class _AddContactViewState extends State<AddContactView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
// if we haven't picked a server yet, pick the first one in the list...
|
||||
if (server.isEmpty) {
|
||||
if (server.isEmpty && Provider.of<ProfileInfoState>(context).serverList.servers.isNotEmpty) {
|
||||
server = Provider.of<ProfileInfoState>(context).serverList.servers.first.onion;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue