mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Correct the message path.
This commit is contained in:
parent
57098c661e
commit
954fc27c54
@ -34,7 +34,7 @@ class DashboardCreateTicketPage extends React.Component {
|
|||||||
|
|
||||||
onCreateTicketSuccess(result, email, message) {
|
onCreateTicketSuccess(result, email, message) {
|
||||||
if((this.props.location.pathname !== '/create-ticket')) {
|
if((this.props.location.pathname !== '/create-ticket')) {
|
||||||
history.push('/dashboard' + '?message=' + message);
|
history.push(`/dashboard?message=${message}`);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {history.push('/check-ticket/' + result.data.ticketNumber + '/' + email)}, 1000);
|
setTimeout(() => {history.push('/check-ticket/' + result.data.ticketNumber + '/' + email)}, 1000);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user