mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +08:00
iap: Allow exp to be null
Not sure how this can ever happen, but it's clearly being reported in Sentry.
This commit is contained in:
@ -8,7 +8,7 @@ class InAppPurchases {
|
|||||||
static void confirmProPurchase() async {
|
static void confirmProPurchase() async {
|
||||||
var currentDt = DateTime.now().toUtc().toIso8601String();
|
var currentDt = DateTime.now().toUtc().toIso8601String();
|
||||||
var exp = Settings.instance.proExpirationDate;
|
var exp = Settings.instance.proExpirationDate;
|
||||||
if (exp.isNotEmpty && exp.compareTo(currentDt) > 0) {
|
if (exp != null && exp.isNotEmpty && exp.compareTo(currentDt) > 0) {
|
||||||
print("Not checking PurchaseInfo as exp = $exp and cur = $currentDt");
|
print("Not checking PurchaseInfo as exp = $exp and cur = $currentDt");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user