From b341b008c28c1f5cd701ef7600da3060f298e361 Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Mon, 26 Jun 2023 22:16:23 -0400 Subject: [PATCH] default arg --- client/src/modules/front_end_components/Toast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/modules/front_end_components/Toast.js b/client/src/modules/front_end_components/Toast.js index d19844a..4404108 100644 --- a/client/src/modules/front_end_components/Toast.js +++ b/client/src/modules/front_end_components/Toast.js @@ -10,7 +10,7 @@ export const toast = ( } }; -function buildAndInsertMessageElement (message, type, positionAtTop, dispelAutomatically, duration, domChild) { +function buildAndInsertMessageElement (message, type, positionAtTop, dispelAutomatically, duration, domChild = false) { cancelCurrentToast(); const messageEl = document.createElement('div'); messageEl.classList.add('info-message');