diff --git a/pkg/internal/server/api/wallet_api.go b/pkg/internal/server/api/wallet_api.go index 33b66c4..4374e24 100644 --- a/pkg/internal/server/api/wallet_api.go +++ b/pkg/internal/server/api/wallet_api.go @@ -29,7 +29,7 @@ func createWallet(c *fiber.Ctx) error { var wallet models.Wallet if err := database.C.Where("account_id = ?", user.ID). - First(&wallet).Error; err == nil || errors.Is(err, gorm.ErrRecordNotFound) { + First(&wallet).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) { return fiber.NewError(fiber.StatusConflict, "wallet already exists") }