Skip to content

Commit

Permalink
Merge pull request #276 from LL08-MathematicalModelling-dowell/fronte…
Browse files Browse the repository at this point in the history
…nd-Norah

Fixes on nps and nps lite masterlink responses
  • Loading branch information
norahwinda authored Jun 10, 2024
2 parents 94716b7 + 352ddbd commit 30ef9ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/scales/report/Booth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const[valid,setValid]=useState(0)
const workspaceId=searchParams.get("workspace_id")
const scaleId=searchParams.get("scale_id")
const scaleType =searchParams.get("scale_type")
const channelName=searchParams.get("channel")
const channelName=searchParams.get("channel_name")

const myParam = new URLSearchParams(location.search).get('scale_type');

Expand Down
4 changes: 2 additions & 2 deletions src/pages/scales/report/NPSScale.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default function App() {
const [searchParams, setSearchParams] = useSearchParams();
const workspaceId=searchParams.get("workspace_id")
const scaleId=searchParams.get("scale_id")
const channelName=searchParams.get("channel")
const instanceName=searchParams.get("instance")
const channelName=searchParams.get("channel_name")
const instanceName=searchParams.get("instance_name")
const buttons = Array.from({ length: 11 }, (_, i) => i);


Expand Down
4 changes: 2 additions & 2 deletions src/pages/scales/report/NpsScaleTest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const NpsScaleTest = () => {
const [searchParams, setSearchParams] = useSearchParams();
const workspaceId=searchParams.get("workspace_id")
const scaleId=searchParams.get("scale_id")
const channelName=searchParams.get("channel")
const instanceName=searchParams.get("instance")
const channelName=searchParams.get("channel_name")
const instanceName=searchParams.get("instance_name")

async function submit(index){
setSubmitted(index)
Expand Down

0 comments on commit 30ef9ee

Please sign in to comment.