Fix TypeScript compile error

This commit is contained in:
Adam Harvey
2021-01-28 15:12:03 -05:00
parent c810082ae6
commit ff58e9765c
@@ -83,8 +83,7 @@ type Props = {
children?: React.ReactNode;
};
const capitalize = s => {
if (typeof s !== 'string') return '';
const capitalize = (s: string) => {
return s.charAt(0).toUpperCase() + s.slice(1);
};