Skip to content
Snippets Groups Projects
Commit af3ba387 authored by Dorian Marco's avatar Dorian Marco
Browse files

fix(wallet, wot-details) distance rule valid if no data

parent f610a604
No related branches found
No related tags found
1 merge request!33Bugfix/feedback alpha 46
......@@ -294,7 +294,7 @@ export class WalletPage extends AppPage<WalletState> implements OnInit {
}
distanceRuleValid(): boolean {
return this.refereePercent > this.networkService.currency.params.minAccessibleReferees / 1000000000;
return this.disableDistanceRule() || this.refereePercent > this.networkService.currency.params.minAccessibleReferees / 1000000000;
}
disableDistanceRule(): boolean {
......
......@@ -209,7 +209,7 @@ export class WotDetailsPage extends AppPage<WotDetailsPageState> implements OnIn
}
distanceRuleValid(): boolean {
return this.refereePercent > this.networkService.currency.params.minAccessibleReferees / 1000000000;
return this.disableDistanceRule() || this.refereePercent > this.networkService.currency.params.minAccessibleReferees / 1000000000;
}
disableDistanceRule(): boolean {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment