대시보드, 기기에러, 계정관리 수정
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// Labels for device_error.error_type.
|
||||
// The telegram itself (device_error.error_code) is parsed on the server:
|
||||
// see component/DeviceErrorCode.java and /api/get-device-error-detail.do
|
||||
|
||||
export const DEVICE_ERROR_TYPE_FAULT = 1; // 단말기 이상
|
||||
export const DEVICE_ERROR_TYPE_SOLD_OUT = 2; // 품절
|
||||
|
||||
export const deviceErrorTypeLabel = (error_type: number | string | null | undefined) => {
|
||||
const value = Number(error_type);
|
||||
if (value === DEVICE_ERROR_TYPE_FAULT) return "단말기 이상";
|
||||
if (value === DEVICE_ERROR_TYPE_SOLD_OUT) return "품절";
|
||||
return "";
|
||||
};
|
||||
Reference in New Issue
Block a user