Skip to content

Commit

Permalink
Updating screen when forwarding register fga-eps-mds/2021.1-Oraculo#193
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Santos Silva Araújos <gabrielsantos_s96@hotmail.com>
  • Loading branch information
VictorRodriguesS0 and GabrielSSAraujo committed Nov 9, 2021
1 parent 47deb06 commit b8956c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pages/ViewRecord/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const ViewRecord = () => {
const { id } = useParams();
const [sector, setSector] = useState("criminal");
const [forward, setForward] = useState([]);
const [forwardData, setForwardData] = useState("");

const [registerNumber, setRegisterNumber] = useState("");
const [requester, setRequester] = useState("");
Expand Down Expand Up @@ -73,7 +74,7 @@ const ViewRecord = () => {
setForward(arrInfoForward);
}
fetchRecordData();
}, []);
}, [forwardData]);

const handleButtonProcess = () => {
toast.loading("Estamos trabalhando nisso ... :)", { duration: 3000 });
Expand All @@ -89,6 +90,7 @@ const ViewRecord = () => {
};

const infoRecord = await forwardRecordInfo(toast, forwardRecInfo);
setForwardData(infoRecord);
};

const previousForward = async (response) => {
Expand Down

0 comments on commit b8956c3

Please sign in to comment.