From 8707411dda0b91e6e7343ad877cc20782e52d39d Mon Sep 17 00:00:00 2001 From: ebube Date: Tue, 28 Nov 2023 21:02:17 -0800 Subject: [PATCH] added a linux checker --- src/components/AddJob/AddJob.jsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/AddJob/AddJob.jsx b/src/components/AddJob/AddJob.jsx index bbd0094..14c85f0 100644 --- a/src/components/AddJob/AddJob.jsx +++ b/src/components/AddJob/AddJob.jsx @@ -24,10 +24,7 @@ function AddJob({ popUpHandler, categories }) { let dispatch = useDispatch(); - const getWalletDetails = getWalletDetail( - userDetails.country, - walletDetails - ); + const getWalletDetails = getWalletDetail(userDetails.country, walletDetails); const walletAmount = getWalletDetails; // GETTING USER BALANCE BASED ON COUNTRY SELECTED const initialValues = { ...IV, country: walletAmount?.description }; const [requestStatus, setRequestStatus] = useState(initialReqState); // Holds state when submit button is pressed @@ -83,6 +80,9 @@ function AddJob({ popUpHandler, categories }) { // Check if the user is using iOS const isIOS = /MacIntel|MacPPC/.test(navigator.platform) && !window.MSStream; + // Check if the user is using Linux + const isLinux = /Linux/.test(navigator.platform); + // Check if the user is using Windows const isWindows = /Windows/.test(navigator.userAgent); @@ -187,7 +187,7 @@ function AddJob({ popUpHandler, categories }) {