Change variable name

This commit is contained in:
2023-10-29 22:26:21 +07:00
parent 2b04fdb191
commit 5f051c4fa2
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
const INVALID_FORMAT_MSG = (field: string) => {
const invalidFormatMsg = (field: string) => {
return `Invalid ${field} format`;
};
const ADD_SUCCESS = 'Add success';
const ERROR_MSG = (errorCode: number, msg: string) => {
const errorMsg = (errorCode: number, msg: string) => {
return `Error code: ${errorCode}. Message: ${msg}`;
};
export { INVALID_FORMAT_MSG, ADD_SUCCESS, ERROR_MSG };
export { invalidFormatMsg, ADD_SUCCESS, errorMsg };