From d2a28e7ad29166c77c82b25de13e5f4a9f542658 Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Tue, 9 May 2023 17:29:16 -0300 Subject: [PATCH] Fix localReceipts --- src/components/Settings/Subscribe/Subscribe.container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Settings/Subscribe/Subscribe.container.js b/src/components/Settings/Subscribe/Subscribe.container.js index 7044a7d75..cd9679703 100644 --- a/src/components/Settings/Subscribe/Subscribe.container.js +++ b/src/components/Settings/Subscribe/Subscribe.container.js @@ -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)