design updates

This commit is contained in:
2023-10-10 10:35:13 +02:00
parent a82d954d77
commit 5245305daa
10 changed files with 19 additions and 11 deletions

View File

@@ -233,8 +233,9 @@ class POSTHandler {
} ).catch( err => {
console.error( err );
} );
} ).catch( () => {
console.log( '[ Ticketing ] An error occurred loading data form temp database' );
} );
// TODO: Add catch block
}
}
} else if ( call === 'deselectTicket' ) {

View File

@@ -40,8 +40,7 @@ exports.init = function () {
},
createGateway: function ( params ) {
if ( !params.amount ) {
// TODO: Think if we really have to throw here
throw new Error( 'Amount required!' );
return false;
}
const defaultParams = {