Skip to content

Commit 69792a9

Browse files
committed
fixup
1 parent 0edc912 commit 69792a9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/purchases/SubscriptionsSubtab.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ async function changeSubscription (productId: string, type: 'upgrade' | 'downgra
5050
method: 'POST'
5151
})
5252
console.log(response, response.text())
53-
return Alert(`You are now subscribed to ${newSubName}!`)
53+
Notification(`You are now subscribed to ${newSubName}!`)
54+
return
5455
}
5556

5657
function clickHandler (this: HTMLButtonElement, e: HTMLElementEventMap['click']) {
@@ -145,7 +146,7 @@ export const createIndividualSubscriptionHTML = (product: SubscriptionProduct, e
145146
Upgrade for ${formatter.format((product.price - existingCosts) / 100)} USD / mo
146147
</button>
147148
<div class="checkout-paypal" data-id="${product.id}"></div>
148-
/div>
149+
</div>
149150
</section>
150151
`
151152
}

0 commit comments

Comments
 (0)