Skip to content

Commit 8033938

Browse files
committed
fix(in-app-store.service): properly display err msg
1 parent d9a4adc commit 8033938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/shared/in-app-store/in-app-store.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class InAppStoreService implements OnDestroy {
7171

7272
this.store.refresh();
7373
} catch (error) {
74-
const errorMessage = this.translocoService.getTranslation(
74+
const errorMessage = this.translocoService.translate(
7575
'inAppPurchase.failedToInitInAppStore'
7676
);
7777
this.errorService.toastError$(errorMessage).toPromise();
@@ -131,7 +131,7 @@ export class InAppStoreService implements OnDestroy {
131131
})
132132
);
133133
} catch (error) {
134-
const errorMessage = this.translocoService.getTranslation(
134+
const errorMessage = this.translocoService.translate(
135135
'wallets.buyNum.failedToAddPoints'
136136
);
137137
this.errorService.toastError$(errorMessage).toPromise();
@@ -175,7 +175,7 @@ export class InAppStoreService implements OnDestroy {
175175
}
176176

177177
private readonly onStoreError = (_: IAPError) => {
178-
const errorMessage = this.translocoService.getTranslation(
178+
const errorMessage = this.translocoService.translate(
179179
'inAppPurchase.inAppPurchaseErrorOcurred'
180180
);
181181
this.errorService.toastError$(errorMessage).toPromise();

0 commit comments

Comments
 (0)