Redirect to peer page on peer create (#213)

This commit is contained in:
Jonathan Zernik 2020-08-03 04:35:29 -07:00 committed by GitHub
parent 2486a05d60
commit b032c57117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,12 +77,12 @@ export default function CreatePeerDialog({
}
console.log(response);
console.log(response.getPeerId());
// goToProfilePage(response.getProfileId());
goToPeerPage(response.getPeerId());
});
};
const goToProfilePage = (profileId) => {
history.push("/app/profile/" + profileId);
const goToPeerPage = (peerId) => {
history.push("/app/peer/" + peerId);
};
function handleSubmit(event) {