Skip to content

Commit

Permalink
updated social kyc step 1 logic to move to quiz step only of properly…
Browse files Browse the repository at this point in the history
… finished
  • Loading branch information
ice-ares committed Apr 17, 2024
1 parent 6b19093 commit 4e37c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kyc/social/social.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (r *repository) modifyUser(ctx context.Context, success, skip bool, kycStep
} else {
(*usr.KYCStepsLastUpdatedAt)[int(kycStep)-1] = now
}
if kycStep == users.Social1KYCStep {
if kycStep == users.Social1KYCStep && !skip {
nextStep := kycStep + 1
usr.KYCStepPassed = &nextStep
if len(*usr.KYCStepsLastUpdatedAt) < int(nextStep) {
Expand Down

0 comments on commit 4e37c3c

Please sign in to comment.