Skip to content

Commit

Permalink
Merge branch 'main' into issue-10253
Browse files Browse the repository at this point in the history
  • Loading branch information
prury committed May 16, 2024
2 parents a8cf02a + d13865a commit 09fc737
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,18 @@
<span class="text-sm text-k-grey">
{{ $t('profile.followedBy') }}:
</span>
<div class="flex -space-x-3">
<NuxtLink
v-for="(follower, index) in followers?.followers"
:key="index"
:to="`/${urlPrefix}/u/${formatAddress(follower.address, chainProperties.ss58Format)}`">
<NeoButton variant="text" no-shadow @click="onFollowersClick">
<div class="flex -space-x-3">
<NuxtImg
v-for="(follower, index) in followers?.followers"
:key="index"
:src="follower.image"
alt="follower avatar"
class="w-8 h-8 rounded-full border object-cover"
:style="{ zIndex: 3 - index }" />
</NuxtLink>
</div>
</div>
</NeoButton>
<span v-if="followersCount > 3" class="text-sm">
+
{{ followersCount - (followers?.followers?.length ?? 0) }}
Expand Down Expand Up @@ -416,7 +416,6 @@ const { urlPrefix, client } = usePrefix()
const { shareOnX, shareOnFarcaster } = useSocialShare()
const { isRemark } = useIsChain(urlPrefix)
const listingCartStore = useListingCartStore()
const { chainProperties } = useChain()
const { hasProfile, userProfile, fetchProfile } = useProfile()
Expand All @@ -427,12 +426,12 @@ const { data: isFollowingThisAccount, refresh: refreshFollowingStatus } =
isFollowing(accountId.value, route.params?.id as string),
)
const { data: followers, refresh: refreshFollowers } = await useAsyncData(
const { data: followers, refresh: refreshFollowers } = useAsyncData(
'followers',
() => fetchFollowersOf(route.params.id as string, 3),
)
const { data: following, refresh: refreshFollowing } = await useAsyncData(
const { data: following, refresh: refreshFollowing } = useAsyncData(
'following',
() => fetchFollowing(route.params.id as string, 1),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
getChainExistentialDeposit,
} from './utils'

const BUFFER_FEE_PERCENT = 0.2
const BUFFER_FEE_PERCENT = 0.4
const BUFFER_AMOUNT_PERCENT = 0.02

const DEFAULT_AUTO_TELEPORT_FEE_PARAMS = {
Expand Down

0 comments on commit 09fc737

Please sign in to comment.