@codeleap/mobile 1.8.2 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "main": "src/index.ts",
5
5
  "repository": "https://github.com/codeleap-uk/internal-libs-monorepo/tree/master/packages/mobile",
6
6
  "author": "Paulo Henrique De Souza <paulosouza300272@gmail.com>",
@@ -188,7 +188,8 @@ export const TextInput = forwardRef<NativeTextInput, TextInputProps>((rawprops,
188
188
 
189
189
  export const FormError = ({ message, ...props }) => {
190
190
  if (['number', 'string', 'undefined'].includes(typeof message)) {
191
- return <Text text={`${message || ' '}`} variants={['p2', 'marginTop:1']} {...props} />
191
+ const text = message ? `${message.charAt(0).toUpperCase() + message.slice(1)}` : ' '
192
+ return <Text text={text} variants={['p2', 'marginTop:1']} {...props} />
192
193
  }
193
194
  return message
194
195
  }