Skip to content

Commit

Permalink
pass through userid and username to external achievements (#6407)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Sep 17, 2024
1 parent fc7dfa2 commit cce91a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion frontend/app/src/components/home/profile/LearnToEarn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
let selectedTab: "todo" | "done" | "external" = "todo";
$: user = client.user;
$: globalState = client.globalStateStore;
$: filtered = [...achievements].filter(filter);
$: [internalAchieved, internalNotAchieved] = client.partition(filtered, (a) =>
Expand Down Expand Up @@ -219,7 +220,9 @@
class="logo"
src={client.achievementLogo(achievement.id)}
alt={achievement.name} />
<ExternalLink iconColor={"var(--txt)"} href={achievement.url}>
<ExternalLink
iconColor={"var(--txt)"}
href={`${achievement.url}?oc_userid=${$user.userId}&oc_username=${$user.username}`}>
{achievement.name}
</ExternalLink>
<div class="reward">
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:prod": "npm ci && dotenv -- turbo run build:prod --cache-dir .turbo",
"build:prod_test": "npm ci && dotenv -- turbo run build:prod_test --cache-dir .turbo",
"build:testnet": "npm ci && dotenv -- turbo run build:testnet --cache-dir .turbo",
"deploy:prod_test": "npm i && dotenv -- turbo run deploy:prod_test --cache-dir .turbo",
"deploy:prod_test": "npm ci && dotenv -- turbo run deploy:prod_test --cache-dir .turbo",
"deploy:prod": "npm ci && dotenv -- turbo run deploy:prod --cache-dir .turbo",
"deploy:testnet": "npm ci && dotenv -- turbo run deploy:testnet --cache-dir .turbo",
"dev": "npm i && dotenv -- turbo run dev --cache-dir .turbo",
Expand Down

0 comments on commit cce91a5

Please sign in to comment.