From 1055bd7c477ae31b971d5c16cc62f7d40176cf58 Mon Sep 17 00:00:00 2001 From: vaibhavgarg25 Date: Sun, 15 Sep 2024 12:44:37 +0530 Subject: [PATCH] slight change --- client/src/components/Buyer/Login.jsx | 2 +- client/src/components/Farmer/FELogin.jsx | 2 +- client/src/components/Farmer/FLogin.jsx | 2 +- client/src/components/Negotiate/Chat.jsx | 8 ++------ 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/client/src/components/Buyer/Login.jsx b/client/src/components/Buyer/Login.jsx index 3ead32b..211ce25 100644 --- a/client/src/components/Buyer/Login.jsx +++ b/client/src/components/Buyer/Login.jsx @@ -39,7 +39,7 @@ const Login = () => {
-

Login

+

Login as Buyer

{
-

Login

+

Login as Farmer

{
-

Login

+

Login as Farmer

{ - if (userType == 'farmer') { - navigate('/farmerdashboard'); - } else { - navigate('/buyer'); - } + navigate('/buyer') }} - style={{ display: !currperson ? 'none' : 'flex' }} + style={{ display: currperson==='farmer' ? 'none' : 'flex' }} > Make Contract