Skip to content

Commit

Permalink
Fix localReceipts
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed May 9, 2023
1 parent 4d6c5b6 commit d2a28e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Settings/Subscribe/Subscribe.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class SubscribeContainer extends PureComponent {
} catch (err) {
if (err.response?.data.error === 'subscriber not found') {
// check if current subscriber already bought in this device
if (localReceipts) {
if (localReceipts.length) {
this.handleError({
code: '0001',
message: intl.formatMessage(messages.googleAccountAlreadyOwns)
Expand Down

0 comments on commit d2a28e7

Please sign in to comment.