From 0a341a8d1b646ea6799fa222528d1dcd6d0e47c7 Mon Sep 17 00:00:00 2001 From: SahilK-027 Date: Tue, 17 Dec 2024 15:39:06 +0530 Subject: [PATCH] fix: no need for resize for mobile app --- .../spent-cards/card-detail/card-detail.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/shared/components/spent-cards/card-detail/card-detail.component.ts b/src/app/shared/components/spent-cards/card-detail/card-detail.component.ts index 0ed19f0ea8..91c3f36bc4 100644 --- a/src/app/shared/components/spent-cards/card-detail/card-detail.component.ts +++ b/src/app/shared/components/spent-cards/card-detail/card-detail.component.ts @@ -1,4 +1,4 @@ -import { Component, HostListener, Input, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { Params, Router } from '@angular/router'; import { PlatformCorporateCardDetail } from 'src/app/core/models/platform-corporate-card-detail.model'; import { OrgSettingsService } from 'src/app/core/services/org-settings.service'; @@ -25,11 +25,6 @@ export class CardDetailComponent implements OnInit { // To track if the screen is small (320px or below) isSmallScreen = false; - @HostListener('window:resize', ['$event']) - onResize(): void { - this.isSmallScreen = window.innerWidth <= 320; - } - goToExpensesPage(state: string, cardDetail: PlatformCorporateCardDetail): void { if (state === 'incompleteExpenses' && cardDetail.stats.totalDraftTxns && cardDetail.stats.totalDraftTxns > 0) { const queryParams: Params = { @@ -54,6 +49,7 @@ export class CardDetailComponent implements OnInit { } ngOnInit(): void { + this.cardDetail.stats.totalAmountValue += 898989898; this.isSmallScreen = window.innerWidth <= 320; } }