Skip to content

Commit

Permalink
Merge branch 'nmdra:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
lksnjw authored Oct 12, 2024
2 parents 3f5bd11 + cad4964 commit 645b068
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/middlewares/farmerauthMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const protect = async (req, res, next) => {
req.user = await Farmer.findById(decoded.userId).select('-password')
next()
} catch (err) {
console.error('Token verification failed:', error)
console.error('Token verification failed:', err)
res.status(401)
throw new Error('Not authorized, token failed')
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/Components/Address.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ const Address = () => {
onChange={handleInputChange}
className="block w-full px-4 py-2 border rounded-md"
placeholder="Zip Code"
min="10000" // Minimum value
max="99999" // Maximum value
required
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/Customer/UserAllOrders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function UserAllOrders() {
const [orders, setOrders] = useState([])
const user = JSON.parse(localStorage.getItem('user'))

const rowsPerPage = 5
const rowsPerPage = 8
const pages = Math.ceil(orders?.length / rowsPerPage)

const items = useMemo(() => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/Customer/UserDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Dashboard() {
}

return (
<div className="relative min-h-screen bg-neutral-100 pr-8 pl-8 pb-6">
<div className="relative min-h-screen bg-neutral-100 pr-8 pl-8 pb-6 pt-6">
{/* Main Content */}
{/* <Breadcrumbs /> Breadcrumbs at the top */}
{/* Membership Banner */}
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/Pages/farmer/FarmerDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ const Dashboard = () => {
<option value="Ready">
Ready
</option>
<option value=" Ready. ">
Ready
</option>
<option value="Pickup">
Pickup
</option>
Expand Down

0 comments on commit 645b068

Please sign in to comment.