Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiawpohr committed Sep 19, 2024
1 parent 38280fc commit 8ff4bd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ export function useNotifyCheckIn() {
null,
)

const isOpen = !!reputationScore && reputationScore < 0 && !checkedInAt && !discardedAt
const isOpen =
!!reputationScore && reputationScore < 0 && !checkedInAt && !discardedAt

const startCheckIn = () => {
setCheckedInAt(new Date().toISOString())
}

const failCheckIn = () => {
setCheckedInAt(null)
}
}

const discardCheckIn = () => {
setDiscardedAt(new Date().toISOString())
Expand Down
8 changes: 6 additions & 2 deletions packages/relay/src/services/ReputationService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { DB } from 'anondb/node'
import { Groth16Proof, PublicSignals } from 'snarkjs'
import { RepChangeType, ReputationHistory, ReputationType } from '../types/Reputation'
import {
RepChangeType,
ReputationHistory,
ReputationType,
} from '../types/Reputation'
import { UnirepSocialSynchronizer } from './singletons/UnirepSocialSynchronizer'
import ProofHelper from './utils/ProofHelper'
import TransactionManager from './utils/TransactionManager'
Expand Down Expand Up @@ -33,7 +37,7 @@ export class ReputationService {
publicSignals: PublicSignals,
proof: Groth16Proof,
db: DB,
synchronizer: UnirepSocialSynchronizer,
synchronizer: UnirepSocialSynchronizer
) {
const epochKeyProof = await ProofHelper.getAndVerifyEpochKeyProof(
publicSignals,
Expand Down

0 comments on commit 8ff4bd0

Please sign in to comment.