Skip to content

Commit 2b575e5

Browse files
author
rachana-egov
committed
Fixed int to string conversion issue
1 parent 27f9853 commit 2b575e5

File tree

1 file changed

+4
-2
lines changed
  • packages/registration_delivery/lib/utils

1 file changed

+4
-2
lines changed

packages/registration_delivery/lib/utils/utils.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ Map<String, dynamic> fetchProductVariant(ProjectCycleDelivery? currentDelivery,
232232
orElse: () => AdditionalField(
233233
AdditionalFieldsType.weight.toValue(), '0.0'),
234234
)
235-
.value ??
235+
.value
236+
.toString() ??
236237
'0.0') ??
237238
0.0;
238239

@@ -243,7 +244,8 @@ Map<String, dynamic> fetchProductVariant(ProjectCycleDelivery? currentDelivery,
243244
orElse: () => AdditionalField(
244245
AdditionalFieldsType.height.toValue(), '0.0'),
245246
)
246-
.value ??
247+
.value
248+
.toString() ??
247249
'0.0') ??
248250
0.0;
249251
}

0 commit comments

Comments
 (0)