Fix restriction check

This commit is contained in:
Eric Bailey
2024-11-21 10:20:04 -06:00
parent a39c51490d
commit 54f655d256
@@ -13,6 +13,9 @@ export function useNativeUserState() {
async function check() {
if (!currentAccount?.did) return
// reset on each run
setRestricted('unknown')
try {
// MUST ensure we're the correct user first
await Purchases.logIn(currentAccount?.did)