Update src/scripts/clientUtils.js

Co-authored-by: Cameron <Influence365@gmail.com>
This commit is contained in:
Julien Machiels 2020-08-14 17:10:27 +02:00 committed by GitHub
parent 5b0018850e
commit 7f9f3cf206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ export function processErrorResponse(response) {
export function alert(options) { export function alert(options) {
if (typeof options == 'string') { if (typeof options == 'string') {
return void import('toast').then(({default: toast}) => { return void import('toast').then(({default: toast}) => {
toast.default({ toast({
text: options text: options
}); });
}); });