nextcloud: Don't show incorrect phone region when it is not set

Tests:

- Install nextcloud and notice that the default phone region is 'Not set'.
Select phone region, it sets properly. Set it to 'Not set' and that works too.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-04-19 06:41:40 -04:00
1 parent 138cdd6e3f
commit 722da5b0d5
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ class NextcloudAppView(AppView):
initial = super().get_initial()
initial.update({
'domain': privileged.get_domain(),
'default_phone_region': privileged.get_default_phone_region()
'default_phone_region': privileged.get_default_phone_region() or ''
})
return initial