fix is premium check (#9101)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
905d24e390
commit
cc2c04e52b
4 files changed
+6
-4
No files matched your search
@@ -162,7 +162,7 @@ async function getUserPageProps(context: GetStaticPropsContext) {
|
||||
return false;
|
||||
}).length > 0;
|
||||
|
||||
const hasPremiumUserName = hasKeyInMetadata(user, "isPremium");
|
||||
const hasPremiumUserName = hasKeyInMetadata(user, "isPremium") ? !!user.metadata.isPremium : false;
|
||||
|
||||
return {
|
||||
props: {
|
||||
|
||||
Reference in new issue
Block a user