diff --git a/components/Editor.js b/components/Editor.js index 0afc312..f457539 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -222,7 +222,7 @@ class Editor extends React.Component { exportImage = (format = 'png', options = {}) => { const link = document.createElement('a') - const prefix = options.filename || 'carbon' + const prefix = options.filename || this.state.name || 'carbon' return this.getCarbonImage({ format, type: 'objectURL' }).then(url => { if (format !== 'open') {