Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 112273f

Browse files
author
Arpitkumar Chaudhari
committed
Updated logic for selecting rates based on hoursPerWeek
1 parent b8b9224 commit 112273f

File tree

1 file changed

+6
-6
lines changed
  • src/routes/CreateNewTeam/pages/CreateTaasPayment

1 file changed

+6
-6
lines changed

src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const CreateTassPayment = () => {
2525
useEffect(() => {
2626
const temp = [];
2727
const amount = [];
28+
2829
addedRoles.map((role) => {
2930
const {
3031
imageUrl,
@@ -35,12 +36,11 @@ const CreateTassPayment = () => {
3536
hoursPerWeek,
3637
} = role;
3738
let rate;
38-
if (hoursPerWeek) {
39-
if (hoursPerWeek === "30") rate = rates.rate30Global;
40-
else if (hoursPerWeek === "20") rate = rates.rate20Global;
41-
} else {
42-
rate = rates.global;
43-
}
39+
40+
if (hoursPerWeek === "30") rate = rates.rate30Global;
41+
else if (hoursPerWeek === "20") rate = rates.rate20Global;
42+
else if (hoursPerWeek === "40") rate = rates.global;
43+
4444
temp.push({
4545
imageUrl,
4646
name,

0 commit comments

Comments
 (0)