From 74d23de9db4b621f13c058e7a10b540af4def02e Mon Sep 17 00:00:00 2001 From: PHAM HOANG HUNG Date: Tue, 10 Sep 2024 14:08:07 +0700 Subject: [PATCH] Handle feedback --- .../error-page-component.component.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/marketplace-ui/src/app/shared/components/error-page-component/error-page-component.component.ts b/marketplace-ui/src/app/shared/components/error-page-component/error-page-component.component.ts index 781466b0e..f97495db8 100644 --- a/marketplace-ui/src/app/shared/components/error-page-component/error-page-component.component.ts +++ b/marketplace-ui/src/app/shared/components/error-page-component/error-page-component.component.ts @@ -36,24 +36,18 @@ export class ErrorPageComponentComponent { } getImageSrcInLightMode(): string { - let imageSrc = ''; if (this.isMobileMode()) { - imageSrc = '/assets/images/misc/robot-mobile.png'; - } else { - imageSrc = '/assets/images/misc/robot.png'; + return '/assets/images/misc/robot-mobile.png'; } - return imageSrc; + return '/assets/images/misc/robot.png'; } getImageSrcInDarkMode(): string { - let imageSrc = ''; if (this.isMobileMode()) { - imageSrc = '/assets/images/misc/robot-mobile-black.png'; - } else { - imageSrc = '/assets/images/misc/robot-black.png'; + return '/assets/images/misc/robot-mobile-black.png'; } - return imageSrc; + return '/assets/images/misc/robot-black.png'; } }