diff --git a/pkg/core/numeral.go b/pkg/core/numeral.go index 2433dfad..3c0f36b9 100644 --- a/pkg/core/numeral.go +++ b/pkg/core/numeral.go @@ -12,7 +12,6 @@ const ( DECIMAL_SEPARATOR_DEFAULT DecimalSeparator = 0 DECIMAL_SEPARATOR_DOT DecimalSeparator = 1 DECIMAL_SEPARATOR_COMMA DecimalSeparator = 2 - DECIMAL_SEPARATOR_SPACE DecimalSeparator = 3 DECIMAL_SEPARATOR_INVALID DecimalSeparator = 255 ) @@ -25,8 +24,6 @@ func (f DecimalSeparator) String() string { return "Dot" case DECIMAL_SEPARATOR_COMMA: return "Comma" - case DECIMAL_SEPARATOR_SPACE: - return "Space" case DECIMAL_SEPARATOR_INVALID: return "Invalid" default: diff --git a/pkg/services/users.go b/pkg/services/users.go index 1c757fa6..7f8cd058 100644 --- a/pkg/services/users.go +++ b/pkg/services/users.go @@ -301,7 +301,7 @@ func (s *UserService) UpdateUser(c core.Context, user *models.User, modifyUserLa updateCols = append(updateCols, "short_time_format") } - if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_SPACE { + if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_COMMA { updateCols = append(updateCols, "decimal_separator") } diff --git a/src/core/numeral.ts b/src/core/numeral.ts index d644fe99..2e3d0856 100644 --- a/src/core/numeral.ts +++ b/src/core/numeral.ts @@ -34,7 +34,6 @@ export class DecimalSeparator implements TypeAndName, NumeralSymbolType { public static readonly LanguageDefaultType: number = 0; public static readonly Dot = new DecimalSeparator(1, 'Dot', '.'); public static readonly Comma = new DecimalSeparator(2, 'Comma', ','); - public static readonly Space = new DecimalSeparator(3, 'Space', ' '); public static readonly Default = DecimalSeparator.Dot;