More memoized requests
This commit is contained in:
@@ -19,10 +19,10 @@ export default async function JoinLoyaltyContact({
|
||||
block,
|
||||
}: JoinLoyaltyContactProps) {
|
||||
const intl = await getIntl()
|
||||
const username = await getName()
|
||||
const user = await getName()
|
||||
|
||||
// Check if we have user, that means we are logged in.
|
||||
if (username) {
|
||||
if (user) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user