removal of unused var

This commit was merged in pull request #852.
This commit is contained in:
victorAnumudu
2024-11-22 11:17:24 +01:00
parent bf28e501a9
commit cee984e574
8 changed files with 80 additions and 80 deletions
+5 -5
View File
@@ -3,7 +3,7 @@ import {
useDispatch,
useSelector,
usersService,
initialValues as IV,
// initialValues as IV,
initialReqState,
useState,
tableReload,
@@ -75,7 +75,7 @@ function AddJob({ popUpHandler, categories }) {
// For form initial values
const initialValues = {
// initial values for formik
country: walletDetails.data.length == 1 ? walletDetails.data[0].country : '',
country: walletDetails.data.length === 1 ? walletDetails.data[0].country : '',
price: "",
title: "",
description: "",
@@ -117,7 +117,7 @@ function AddJob({ popUpHandler, categories }) {
className={`input-field p-2 mt-3 rounded-full placeholder:text-base text-dark-gray w-full h-[42px] bg-slate-100 focus:ring-0 focus:outline-none border`}
onChange={props.handleChange}
onBlur={props.handleBlur}
disabled={walletDetails.data.length == 1}
disabled={walletDetails.data.length === 1}
>
{walletDetails?.loading ? (
<option className="text-slate-500 text-lg" value="">
@@ -138,7 +138,7 @@ function AddJob({ popUpHandler, categories }) {
</option>
))}
</>
) : walletDetails.data.length == 1 ?
) : walletDetails.data.length === 1 ?
<>
{walletDetails.data?.map((item, index) => (
<option
@@ -367,7 +367,7 @@ function AddJob({ popUpHandler, categories }) {
{/* ERROR DISPLAY AND SUBMIT BUTTON */}
<div className="content-footer w-full">
{/* error or success display */}
{requestStatus.message != "" &&
{requestStatus.message !== "" &&
(!requestStatus.status ? (
<div
className={`relative p-4 my-4 text-[#912741] bg-[#fcd9e2] border-[#fbc6d3] mb-4 rounded-[0.475rem] text-md font-light leading-[19.5px] text-[13px]`}