Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: allow saving empty string input

Ammar Ahmed765ebbe10cc8
diff --git a/apps/mobile/app/screens/settings/section-item.tsx b/apps/mobile/app/screens/settings/section-item.tsx
index 63575252e..4df4e7853 100644
--- a/apps/mobile/app/screens/settings/section-item.tsx
+++ b/apps/mobile/app/screens/settings/section-item.tsx
@@ -203,19 +203,15 @@ const _SectionItem = ({ item }: { item: SettingSection }) => {
<Input
{...item.inputProperties}
onSubmit={(e) => {
- if (e.nativeEvent.text) {
- SettingsService.set({
- [item.property as string]: e.nativeEvent.text
- });
- }
+ SettingsService.set({
+ [item.property as string]: e.nativeEvent.text
+ });
item.inputProperties?.onSubmitEditing?.(e);
}}
onChangeText={(text) => {
- if (text) {
- SettingsService.set({
- [item.property as string]: text
- });
- }
+ SettingsService.set({
+ [item.property as string]: text
+ });
item.inputProperties?.onSubmitEditing?.(text as any);
}}
containerStyle={{ marginTop: 12 }}