Commit 4e94ad1d authored by Olivia Madrid's avatar Olivia Madrid

(feat): pass build

1 merge request!675Wallet upgrade
Pipeline #99154414 failed with stages
in 10 minutes and 2 seconds
......@@ -9,12 +9,18 @@ import { Timespan } from '../../../../interfaces/dashboard';
export class WalletChartComponent implements OnInit {
@Input() activeCurrencyId;
timespans: Timespan[];
selectedTimespan;
data;
constructor(protected walletService: WalletDashboardService) {}
ngOnInit() {
this.walletService.getTimespans();
this.data = this.walletService.getData();
this.timespans = this.data.timespans;
this.selectedTimespan = this.timespans.find(
ts => ts.id === this.data.timespan
).id;
this.data = this.walletService
.getCurrencies()
.find(currency => currency.id === this.activeCurrencyId);
......
......@@ -85,7 +85,6 @@ export class WalletDashboardComponent implements OnInit, OnDestroy {
this.activeTabId = params.get('topTab');
} else {
this.activeTabId = this.topTabOptions[0];
console.log('bork');
this.rerouteTopTab(this.activeTabId);
}
......@@ -116,9 +115,7 @@ export class WalletDashboardComponent implements OnInit, OnDestroy {
}
rerouteTopTab(topTabId) {
console.log('bork1', this.activeCurrencyId);
this.router.navigate(['/v2wallet', this.activeCurrencyId, topTabId]);
console.log('bork2');
this.detectChanges();
}
......
......@@ -73,10 +73,10 @@ export class WalletDashboardService {
}
getTimespans() {
return fakeData.timespans;
return fakeData;
}
getData(currency) {
getData() {
return fakeData;
}
......
Please register or to comment