Skip to content

Commit

Permalink
fix: Proper evaluation order when building errors strings
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Jun 17, 2024
1 parent 785f421 commit 4f26fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils/displayError.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function statusMessage(status) {
* @param {string} msg as message to toast out
*/
function displaySimpleError(e = null, msg = '') {
console.error('Error occurred: ' + msg ?? '', e?.message)
console.error('Error occurred: ' + (msg ?? ''), e?.message)
showError(msg)
}

Expand Down

0 comments on commit 4f26fe8

Please sign in to comment.