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 <[email protected]>
  • Loading branch information
juliusknorr committed Aug 29, 2024
1 parent 030b57d commit 6e6cba4
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 @@ -37,7 +37,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 6e6cba4

Please sign in to comment.