Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit b8e226b

Browse files
committed
Simplified condition introductoryPriceMicros getter.
1 parent 29be56b commit b8e226b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ class SkuDetailsWrapper {
7979
@Deprecated('Use `introductoryPriceAmountMicros` instead.')
8080
@JsonKey(ignore: true)
8181
String get introductoryPriceMicros => _introductoryPriceMicros.isEmpty
82-
? introductoryPriceAmountMicros != 0
83-
? introductoryPriceAmountMicros.toString()
84-
: ''
82+
? introductoryPriceAmountMicros.toString()
8583
: _introductoryPriceMicros;
8684

8785
/// The number of subscription billing periods for which the user will be given the introductory price, such as 3.

0 commit comments

Comments
 (0)