Skip to content

Commit

Permalink
Fix bug in reward display
Browse files Browse the repository at this point in the history
  • Loading branch information
zeptin committed Mar 15, 2024
1 parent 9a0d4bf commit 8336964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/user/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useUpdateRewards() {
const totalRegistrations = useTotalRegistrations()

return useCallback(async () => {
if (!account || !contract || userStatus !== RegistrationStatus.REGISTERED || totalBlockShares === 0 || sinceLastClaim === 0 || totalRegistrations === 0) {
if (!account || !contract || userStatus !== RegistrationStatus.REGISTERED || sinceLastClaim === 0 || totalRegistrations === 0) {
dispatch(setRewards('0'))
return
}
Expand Down

0 comments on commit 8336964

Please sign in to comment.