minor fix
This commit is contained in:
@@ -57,7 +57,7 @@ class NotificationModal extends React.Component {
|
||||
userdata: { email, last_date, olx_url }
|
||||
} = this.props;
|
||||
axios
|
||||
.post("/api/marketalerts", {
|
||||
.post("/marketalerts", {
|
||||
email,
|
||||
last_date,
|
||||
olx_url
|
||||
@@ -138,7 +138,12 @@ class NotificationModal extends React.Component {
|
||||
</DialogContent>
|
||||
<DialogActions className={classes.modalFooter}>
|
||||
{validEmail ? (
|
||||
<Button className={classes.saveButton}>Save</Button>
|
||||
<Button
|
||||
onClick={this.handleSaveMarketAlert}
|
||||
className={classes.saveButton}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
) : (
|
||||
<Tooltip
|
||||
title="Provide a valid email"
|
||||
|
||||
Reference in New Issue
Block a user