Merge pull request 'Restore function removed by bad merge' (#129) from fix/bad-merge into main
All checks were successful
Playwright Tests / test (push) Has been skipped
Check usage of free licenses / build-static-assets (push) Successful in 22s
Build Nginx-based docker image / build-static-assets (push) Successful in 3m18s

Reviewed-on: #129
This commit is contained in:
bustikiller 2024-12-01 22:00:03 +00:00
commit 59b51885d3

View File

@ -8,3 +8,8 @@ export const getCsrfToken = () => {
} }
export const getSlug = () => localStorage.getItem('slug') || 'default'; 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);
}