Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Add activity host reward
Browse files Browse the repository at this point in the history
  • Loading branch information
kikakkz committed Dec 8, 2023
1 parent 682badd commit 68f171b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions foundation/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ impl Contract for Foundation {
} => {
let reward_user = match reward_type {
RewardType::Review => context.authenticated_signer,
// TODO: activity reward should be reviewed then here will removed
RewardType::Activity => context.authenticated_signer,
_ => reward_user,
};
let _reward_user = match reward_user {
Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/ActivityContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const votable = () => {
}

const voteEnd = () => {
return ((activity.value?.voteEndAt || 0) < Date.now() && !activity.value?.finalized) || true
return (activity.value?.voteEndAt || 0) < Date.now() && !activity.value?.finalized
}

const router = useRouter()
Expand Down
9 changes: 2 additions & 7 deletions webui/src/components/ReviewActivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const onApproveClick = async () => {
}
`))
onDone(() => {
// TODO
review.activityMutateKeys.push(Number(activityId.value))
})
onError((error) => {
console.log(error)
Expand All @@ -87,12 +87,7 @@ const onApproveClick = async () => {
endpoint: 'review',
chainId: targetChain.value
})
void router.push({
path: '/',
query: {
port: port.value
}
})
void router.back()
}

const onRejectClick = async () => {
Expand Down

0 comments on commit 68f171b

Please sign in to comment.