Restore function removed by bad merge
All checks were successful
Playwright Tests / test (pull_request) Has been skipped
Add copyright notice / copyright_notice (pull_request) Successful in 31s
Check usage of free licenses / build-static-assets (pull_request) Successful in 36s

This commit is contained in:
Manuel Bustillo 2024-12-01 22:59:07 +01:00
parent 9aab22ab39
commit 0620516a05

View File

@ -8,3 +8,8 @@ export const getCsrfToken = () => {
}
export const getSlug = () => localStorage.getItem('slug') || 'default';
// From https://stackoverflow.com/a/1026087/3607039
export const capitalize = (val:string) => {
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
}