Skip to content

Commit

Permalink
Bug fix: transactions cache was always nil until persisting the first…
Browse files Browse the repository at this point in the history
… transaction
  • Loading branch information
hpique committed Oct 28, 2013
1 parent 6b5797a commit 1648cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RMStore/Optional/RMStoreKeychainPersistence.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ - (NSSet*)purchasedProductIdentifiers

- (NSDictionary*)transactionsDictionary
{
if (_transactionsDictionary)
if (!_transactionsDictionary)
{ // Reading the keychain is slow so we cache its values in memory
NSData *data = RMKeychainGetValue(RMStoreTransactionsKeychainKey);
NSDictionary *transactions = [NSDictionary dictionary];
Expand Down

0 comments on commit 1648cf7

Please sign in to comment.