Skip to content

Commit

Permalink
Added static messagePrefix to error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Mar 15, 2022
1 parent 3f1ea97 commit 999d1de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ERROR_TITLE from '@salesforce/label/c.ortoo_core_error_title';
const displayError = function( error, options ) {

const title = options?.title ? options.title : ERROR_TITLE;
const messagePrefix = options?.messagePrefix ? options.messagePrefix + ': ' : '';
const messagePrefix = options?.messagePrefix ? options.messagePrefix + ': ' : 'Your action could not be completed: '; // TODO: should be a label
const mode = options?.mode ? options.mode : 'sticky';
const variant = options?.variant ? options.variant : 'error';

Expand Down

0 comments on commit 999d1de

Please sign in to comment.