Skip to content

Commit

Permalink
Fixing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante291 committed Nov 27, 2023
1 parent 814db90 commit e7cb6d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/plugins/talawa_plugin_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ class TalawaPluginProvider extends StatelessWidget {
///mapping over the list from the server
pluginList.forEach((plugin) {
if (plugin["pluginName"] == pluginName) {
if (plugin["pluginInstallStatus"] as bool) {
res = plugin["pluginInstallStatus"] as bool ||
(plugin["installedOrgs"] as List)
.contains(userConfig.currentOrg.id);
}
res = plugin["pluginInstallStatus"] as bool ||
(plugin["installedOrgs"] as List)
.contains(userConfig.currentOrg.id);
}
});
return res;
Expand Down

0 comments on commit e7cb6d8

Please sign in to comment.