add empty card when data not available
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
6
utils/helper.ts
Normal file
6
utils/helper.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const makeFirstCharUpper = (val: string) => {
|
||||
if (val === '') return val
|
||||
const firstChar = val.at(0)?.toLocaleUpperCase() || ''
|
||||
const otherChar = val.slice(1)
|
||||
return firstChar + otherChar
|
||||
}
|
||||
Reference in New Issue
Block a user