Skip to content

Commit

Permalink
fix #139 fix routing to profiles when already on a player profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Apr 1, 2023
1 parent 7d33415 commit 803870d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 29 deletions.
63 changes: 36 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"tsconfig-paths": "^4.1.2",
"type-fest": "^3.5.6",
"typescript": "^4.6.4",
"unplugin-vue-router": "^0.3.2",
"unplugin-vue-router": "^0.5.4",
"uuid": "^9.0.0",
"vite": "^4.0.4",
"vite-electron-plugin": "^0.7.4",
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/views/profile/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ TODO:
</template>

<script lang="ts" setup>
import { computed } from "vue";

import Flag from "@/components/misc/Flag.vue";

const props = defineProps<{
id: string;
}>();

const user = api.session.getUserById(parseInt(props.id));
const user = computed(() => api.session.getUserById(parseInt(props.id)));
</script>

<style lang="scss" scoped></style>

0 comments on commit 803870d

Please sign in to comment.