Commit 494f31e4 by Adarsh K

default login

parent eeaab424
......@@ -129,7 +129,7 @@
<p class="textLeft">Total Price:</p>
</ion-col>
<ion-col>
<p class="textRight">AU$ 239.00</p>
<p class="textRight" *ngIf="cartService.cartTotal">A$ {{cartService.cartTotal}}</p>
</ion-col>
</ion-row>
</div>
......
......@@ -25,8 +25,13 @@ export class LandingPage implements OnInit {
) {
this.service.get('landing').then((data) => {
if (data === true) {
const user = JSON.parse(localStorage.getItem('user'));
if (user) {
this.goToPage('home');
} else {
this.goToPage('login');
}
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment