Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rsproule committed Jan 2, 2024
1 parent f33d70d commit 7609ce6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions frontend/src/components/tankGame/EventsStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function getTankNameFromJoinIndex(
tankId: bigint
) {
// HACK: jonah forgot to set his name so we are mapping it here :eyeroll:
if (tankId === BigInt(1)) {
if (tankId === BigInt(2)) {
return "jonah-forgot-to-set-his-name";
}
let logs = await getLogs(address);
Expand Down Expand Up @@ -335,11 +335,15 @@ const startString = async () => {
};

const bountyString = async (address: Address, event: any) => {
return `🎯 ${await getTankNameFromJoinIndex(
address,
event.args.hunter
)} completed bounty on ${await getTankNameFromJoinIndex(
address,
event.args.victim
)} for ${event.args.reward} APs.`;
return `🎯 ${
await getTankNameFromJoinIndex(
address,
event.args.hunter
)
} completed bounty on ${
await getTankNameFromJoinIndex(
address,
event.args.victim
)
} for ${ event.args.reward } APs.`;
};

0 comments on commit 7609ce6

Please sign in to comment.