From fb83abb61fb632d8de8e7c9181925660250f3ba6 Mon Sep 17 00:00:00 2001 From: Andrapyre <42009361+Andrapyre@users.noreply.github.com> Date: Thu, 9 May 2024 07:58:15 +0200 Subject: [PATCH] fixing default currency value --- zio-schema/jvm/src/main/scala/zio/schema/StandardType.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zio-schema/jvm/src/main/scala/zio/schema/StandardType.scala b/zio-schema/jvm/src/main/scala/zio/schema/StandardType.scala index 66e56ee72..4050c08d4 100644 --- a/zio-schema/jvm/src/main/scala/zio/schema/StandardType.scala +++ b/zio-schema/jvm/src/main/scala/zio/schema/StandardType.scala @@ -167,7 +167,7 @@ object StandardType { implicit object CurrencyType extends StandardType[java.util.Currency] { override def tag: String = Tags.CURRENCY - override val defaultValue: Either[String, java.util.Currency] = + override def defaultValue: Either[String, java.util.Currency] = try { Right(java.util.Currency.getInstance(java.util.Locale.getDefault())) } catch {