Skip to content

Commit

Permalink
Fix incorrect user redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliano101 committed Jan 13, 2025
1 parent 16e1e4b commit c8f8ccb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/chat/UserCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ const props = defineProps<{
target: ChatUser;
}>();

Check failure on line 170 in src/app/chat/UserCard.vue

View workflow job for this annotation

GitHub Actions / WebExtension Lint, Build, Test

Delete `⏎`
const TWITCH_ROOT_URL = "https://twitch.tv";
const emit = defineEmits<{
(e: "close"): void;
(e: "mount-handle", handle: HTMLDivElement): void;
Expand Down Expand Up @@ -440,7 +443,7 @@ function highlightUserMessages(): void {
}
function getProfileURL(): string {
return window.location.origin + "/" + props.target.username;
return `${TWITCH_ROOT_URL}/${props.target.username}`;
}
function formatDateToString(date?: string): string {
Expand Down

0 comments on commit c8f8ccb

Please sign in to comment.