Restore function removed by bad merge #129

Merged
bustikiller merged 1 commits from fix/bad-merge into main 2024-12-01 22:00:04 +00:00
Showing only changes of commit 0620516a05 - Show all commits

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);
}