address lint issues

This commit is contained in:
Mutasem 2021-07-02 14:16:14 +02:00
parent 37d11ff71f
commit e54a7a121b
2 changed files with 7 additions and 3 deletions

View file

@ -614,7 +614,7 @@ a.logo {
.gift-container { .gift-container {
display: flex; display: flex;
justify-content: end; justify-content: flex-start;
align-items: center; align-items: center;
height: 100%; height: 100%;
width: 100%; width: 100%;

View file

@ -20,8 +20,12 @@ export const showMessage = mixins(externalHooks).extend({
if (config && config.closeOnClick) { if (config && config.closeOnClick) {
const cb = config.onClick; const cb = config.onClick;
config.onClick = () => { config.onClick = () => {
notification && notification.close(); if (notification) {
cb && cb(); notification.close();
}
if (cb) {
cb();
}
}; };
} }