We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38cb133 commit c9b0868Copy full SHA for c9b0868
customer_data_app/customer_data/backend/backend.py
@@ -154,7 +154,7 @@ def get_user(self, user: Customer):
154
def add_customer_to_db(self, form_data: dict):
155
with rx.session() as session:
156
if session.exec(
157
- select(Customer).where(Customer.email == self.current_user.email)
+ select(Customer).where(Customer.email == form_data.get("email"))
158
).first():
159
return rx.window_alert("User with this email already exists")
160
self.current_user = Customer(
0 commit comments