Updated billing info popup message

no issue

- Updates stripe billing info update/cancel message in popup notification
This commit is contained in:
Rish 2020-10-02 19:35:50 +05:30
parent 4b3973c105
commit 21fc8ab2b4

View File

@ -208,7 +208,10 @@ export default class App extends React.Component {
fetchNotificationData() {
const {type, status, duration, autoHide, closeable} = NotificationParser({billingOnly: true}) || {};
if (['stripe:billing-update'].includes(type)) {
const popupNotification = createPopupNotification({type, status, duration, closeable, autoHide, state: this.state});
const popupNotification = createPopupNotification({
type, status, duration, closeable, autoHide, state: this.state,
message: status === 'success' ? 'Successfully updated Billing info' : 'Billing update was cancelled'
});
return {
showPopup: true,
popupNotification