Преглед на файлове

Fix filtering of private tweets

rohit.gowda преди 4 години
родител
ревизия
f3d699ca50
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/src/pages/home/home.ts

+ 3 - 3
app/src/pages/home/home.ts

@@ -113,16 +113,16 @@ export class HomePage {
     this.privateTweet = !this.privateTweet;
     const loading = this.loadingCtrl.create();
     loading.present();
-    this.tweets = this.privateTweets;
-
+   
     if(this.privateTweet){
       this.color = 'black';
+      this.tweets = this.privateTweets;
       loading.dismiss();
     }
 
     else{
       this.color = 'white';
-      this.tweets =this.cachedTweets;
+      this.tweets = this.cachedTweets;
       loading.dismiss();
     }