diff --git a/cyberwow/lib/controller/rpc/rpcView.dart b/cyberwow/lib/controller/rpc/rpcView.dart index 7d80184..50977e1 100644 --- a/cyberwow/lib/controller/rpc/rpcView.dart +++ b/cyberwow/lib/controller/rpc/rpcView.dart @@ -162,7 +162,8 @@ Map getInfoView(Map x) { (k,v) => _remove.contains(k) ); - final Map _hashRate = {'hash_rate': _filteredInfo['difficulty'] / 300}; + final int _difficulty = _filteredInfo['difficulty'] ?? 0; + final Map _hashRate = {'hash_rate': _difficulty / 300}; final Map _ammendedInfo = { ..._filteredInfo, ..._hashRate,