Skip to content

Commit

Permalink
wip remove unused function (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Feb 20, 2024
1 parent a244498 commit ae6ac10
Showing 1 changed file with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,9 @@ export class RemunerationComponent implements OnInit, OnDestroy {
ngOnInit(): void {
this.cdref.markForCheck();
this.parentFunction().subscribe();
//this.getUserCrypto('123');
this.activatedRoute.params.subscribe((params) => {
if(!!params.id) {
this.getUserCrypto(params.id);
this.getCampaignsData(params.id);
}
})
this.saveForm();
Expand Down Expand Up @@ -694,37 +693,8 @@ export class RemunerationComponent implements OnInit, OnDestroy {
return new UntypedFormArray(controls);
}

getUserCrypto(id: string) {
this.walletFacade.cryptoList$
.pipe(takeUntil(this.isDestroyed$))
.subscribe((data: any) => {
data = JSON.parse(JSON.stringify(data));
this.dataList = data;
Object.preventExtensions(this.dataList);
this.cryptoQuantity = (
this.dataList.find(
(crypto: any) => crypto.symbol === this.draftData.currency.name
) as any
)?.quantity;
this.dataList = [
...this.dataList.filter((data: any) => data.symbol === 'SATT'),
...this.dataList.filter((data: any) => data.symbol === 'USDT'),
...this.dataList.filter((data: any) => data.symbol === 'DAI'),
...this.dataList.filter((data: any) => data.symbol === 'SATTBEP20'),
...this.dataList.filter((data: any) => data.symbol === 'BUSD'),
...this.dataList.filter((data: any) => data.symbol === 'SATTPOLYGON'),
...this.dataList.filter((data: any) => data.symbol === 'MATIC'),
...this.dataList.filter((data: any) => data.symbol === 'SATTBTT'),
...this.dataList.filter((data: any) => data.symbol === 'BTT'),
...this.dataList.filter((data: any) => data.symbol === 'SATTTRON'),
...this.dataList.filter((data: any) => data.symbol === 'TRX'),
...this.dataList.filter((data: any) => data.symbol === 'AA'),
];
});


getCampaignsData(id: string) {
this.campaignService.getOneById(id).subscribe((response: any) => {

this.selectedNetworkValue = response.data.token.type;

this.res = this.cryptodata;
Expand Down

0 comments on commit ae6ac10

Please sign in to comment.