Skip to content
Snippets Groups Projects
Commit 180a1ac5 authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Don't use a hard-coded string...

parent 33ad9270
Branches
Tags
No related merge requests found
......@@ -237,7 +237,8 @@ class Blocks extends React.Component {
}
handlePromptStart (message, defaultValue, callback, optTitle, optVarType) {
const p = {prompt: {callback, message, defaultValue}};
p.prompt.title = optTitle ? optTitle : 'New Variable';
p.prompt.title = optTitle ? optTitle :
this.ScratchBlocks.VARIABLE_MODAL_TITLE;
p.prompt.showMoreOptions =
optVarType !== this.ScratchBlocks.BROADCAST_MESSAGE_VARIABLE_TYPE;
this.setState(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment