fixed some build bug issues
This commit was merged in pull request #850.
This commit is contained in:
@@ -11,7 +11,7 @@ import { useReactToPrint } from 'react-to-print'
|
||||
|
||||
const Iframe = lazy(() => import("../Iframe/Iframe"));
|
||||
|
||||
export default function FamGames() {
|
||||
export default function FamGames(props) {
|
||||
|
||||
const ApiCall = new usersService();
|
||||
const navigate = useNavigate();
|
||||
@@ -40,7 +40,7 @@ export default function FamGames() {
|
||||
|
||||
// FUNCTION TO HANDLE POPOUT
|
||||
const popUpHandler = () => {
|
||||
setPopUp((prev) => !prev);
|
||||
// setPopUp((prev) => !prev);
|
||||
};
|
||||
|
||||
// FUNCTION TO HANDLE MESSAGE CHANGE
|
||||
@@ -136,7 +136,7 @@ export default function FamGames() {
|
||||
message: "Message Sent Successfully",
|
||||
});
|
||||
// function to trigger socket to emit 'send_message'
|
||||
sendMessage(messageToSend, `${props.details.contract}-${props.details.contract_uid}`)
|
||||
// sendMessage(messageToSend, `${props.details.contract}-${props.details.contract_uid}`)
|
||||
|
||||
props.reloadActiveJobList((prev) => !prev); // MAKES ACTIVE JOB MESSAGE LIST TO RELOAD
|
||||
setMessageToSend(""); // SENDS MESSAGE TO SEND BACK TO EMPTY STRINGS
|
||||
@@ -176,12 +176,12 @@ export default function FamGames() {
|
||||
|
||||
const fileToBase64 = async () => {
|
||||
// Converts file data to base64 string
|
||||
try {
|
||||
const base64String = await convertFileToBase64(filesToSend[i]);
|
||||
return base64String;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
// try {
|
||||
// const base64String = await convertFileToBase64(filesToSend[i]);
|
||||
// return base64String;
|
||||
// } catch (error) {
|
||||
// return false;
|
||||
// }
|
||||
};
|
||||
|
||||
// if(await !fileToBase64()){
|
||||
|
||||
Reference in New Issue
Block a user