Skip to content

Commit

Permalink
fix: update statement page title (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Aug 14, 2024
1 parent f21f77b commit 94d8f42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions apps/ui/src/views/SpaceUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const usersStore = useUsersStore();
const spacesStore = useSpacesStore();
const { param } = useRouteParser('id');
const { resolved, address, networkId } = useResolve(param);
const { setTitle } = useTitle();
const { getCurrent } = useMetaStore();
const userActivity = ref<UserActivity>({
Expand Down Expand Up @@ -170,10 +169,6 @@ watch(
spacesStore.networksMap[networkId].spaces[address];
}
);
watchEffect(() =>
setTitle(`${user.value?.name || userId.value} ${props.space.name}'s profile`)
);
</script>

<template>
Expand Down
9 changes: 7 additions & 2 deletions apps/ui/src/views/SpaceUser/Statement.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<script setup lang="ts">
import { enabledNetworks, getNetwork, offchainNetworks } from '@/networks';
import { Space, Statement } from '@/types';
import { Space, Statement, User } from '@/types';
const offchainNetworkId = offchainNetworks.filter(network =>
enabledNetworks.includes(network)
)[0];
const offchainNetwork = getNetwork(offchainNetworkId);
const props = defineProps<{ space: Space }>();
const props = defineProps<{ user: User; space: Space }>();
const route = useRoute();
const { setTitle } = useTitle();
const { web3 } = useWeb3();
const isEditMode = ref(false);
Expand Down Expand Up @@ -40,6 +41,10 @@ async function loadStatement() {
}
watch(userId, loadStatement, { immediate: true });
watchEffect(() =>
setTitle(`${props.user.name || userId.value} ${props.space.name}'s profile`)
);
</script>

<template>
Expand Down

0 comments on commit 94d8f42

Please sign in to comment.