Skip to content

Commit eb90e8f

Browse files
alcalawilauroter
andauthored
Update pkg/service/user.go
Co-authored-by: Auroter <[email protected]>
1 parent 32ecd15 commit eb90e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/service/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (u user) Create(request model.WalletSignaturePayloadSigned) (UserCreateResp
101101
// create device only if there is a visitor
102102
device, err := u.device.CreateDeviceIfNeeded(user.ID, request.Fingerprint.VisitorID, request.Fingerprint.RequestID)
103103

104-
if err != nil && !strings.Contains(err.Error(), "not found") {
104+
if err != nil && errors.Cause(err).Error() != "not found" {
105105
return resp, common.StringError(err)
106106
}
107107

0 commit comments

Comments
 (0)