diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-12-01 00:36:38 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-12-01 00:36:38 +0530 |
commit | e33efe0e57d3e056813ea1a99d583fe304298295 (patch) | |
tree | 0ebede431ccba0dbb0def156d27cb47988a6107c /src | |
parent | chore: [#42] use noop consistently throughout (#808) (diff) | |
download | ferdium-app-e33efe0e57d3e056813ea1a99d583fe304298295.tar.gz ferdium-app-e33efe0e57d3e056813ea1a99d583fe304298295.tar.zst ferdium-app-e33efe0e57d3e056813ea1a99d583fe304298295.zip |
Minor fix for data type consistency
Diffstat (limited to 'src')
-rw-r--r-- | src/containers/settings/EditServiceScreen.tsx | 2 | ||||
-rw-r--r-- | src/internal-server/app/Controllers/Http/ServiceController.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index a72df5604..d4186560f 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -261,7 +261,7 @@ class EditServiceScreen extends Component<IProps> { | |||
261 | }, | 261 | }, |
262 | customIcon: { | 262 | customIcon: { |
263 | label: intl.formatMessage(messages.icon), | 263 | label: intl.formatMessage(messages.icon), |
264 | value: service?.hasCustomUploadedIcon ? service?.icon : false, | 264 | value: service?.hasCustomUploadedIcon ? service?.icon : null, |
265 | type: 'file', | 265 | type: 'file', |
266 | }, | 266 | }, |
267 | isDarkModeEnabled: { | 267 | isDarkModeEnabled: { |
diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js index 226adb134..940cac065 100644 --- a/src/internal-server/app/Controllers/Http/ServiceController.js +++ b/src/internal-server/app/Controllers/Http/ServiceController.js | |||
@@ -80,7 +80,7 @@ class ServiceController { | |||
80 | // TODO: Remove duplication | 80 | // TODO: Remove duplication |
81 | return { | 81 | return { |
82 | customRecipe: false, | 82 | customRecipe: false, |
83 | hasCustomIcon: false, | 83 | hasCustomIcon: DEFAULT_SERVICE_SETTINGS.hasCustomIcon, |
84 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 84 | isBadgeEnabled: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
85 | trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, | 85 | trapLinkClicks: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, |
86 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. | 86 | isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. |