Fix restriction check
This commit is contained in:
@@ -13,6 +13,9 @@ export function useNativeUserState() {
|
|||||||
async function check() {
|
async function check() {
|
||||||
if (!currentAccount?.did) return
|
if (!currentAccount?.did) return
|
||||||
|
|
||||||
|
// reset on each run
|
||||||
|
setRestricted('unknown')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// MUST ensure we're the correct user first
|
// MUST ensure we're the correct user first
|
||||||
await Purchases.logIn(currentAccount?.did)
|
await Purchases.logIn(currentAccount?.did)
|
||||||
|
|||||||
Reference in New Issue
Block a user